org.apache.cocoon.woody.binding
Class RepeaterJXPathBindingBuilder

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBuilderBase
      extended by org.apache.cocoon.woody.binding.RepeaterJXPathBindingBuilder
All Implemented Interfaces:
LogEnabled

public class RepeaterJXPathBindingBuilder
extends JXPathBindingBuilderBase

RepeaterJXPathBindingBuilder provides a helper class for the Factory implemented in JXPathBindingManager that helps construct the actual RepeaterJXPathBinding out of the configuration in the provided configElement which looks like:


 <wb:repeater
   id="contacts"
   parent-path="contacts"
   row-path="contact"
   unique-row-id="id"
   unique-path="@id"   >

   <wb:on-bind>
      <!-- nested bindings executed on updates AND right after the insert -->
   </wb:on-bind>

   <wb:on-delete-row>
      <!-- nested bindings executed on deletion of row -->
   </wb:on-delete-row>

   <wb:on-insert-row>
      <!-- nested bindings executed to prepare the insertion of a row -->
   </wb:on-insert-row>

 </wb:repeater>
 

Version:
CVS $Id: RepeaterJXPathBindingBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
RepeaterJXPathBindingBuilder()
           
 
Method Summary
 JXPathBindingBase buildBinding(Element bindingElm, JXPathBindingManager.Assistant assistant)
          Creates an instance of RepeaterJXPathBinding according to the attributes and nested comfiguration elements of the bindingElm.
 
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBuilderBase
enableLogging, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeaterJXPathBindingBuilder

public RepeaterJXPathBindingBuilder()
Method Detail

buildBinding

public JXPathBindingBase buildBinding(Element bindingElm,
                                      JXPathBindingManager.Assistant assistant)
                               throws BindingException
Creates an instance of RepeaterJXPathBinding according to the attributes and nested comfiguration elements of the bindingElm.

Specified by:
buildBinding in class JXPathBindingBuilderBase
Parameters:
bindingElm -
assistant -
Returns:
JXPathBindingBase
Throws:
BindingException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.