org.apache.cocoon.woody.binding
Class AggregateJXPathBinding

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
          extended by org.apache.cocoon.woody.binding.AggregateJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

public class AggregateJXPathBinding
extends ComposedJXPathBindingBase

AggregateJXPathBinding provides an implementation of a Binding that narrows the context towards provided childbindings.

NOTES:

  1. This Binding assumes that the provided widget-id points to a widget that contains other widgets.

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

Field Summary
 
Fields inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
AggregateJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, String xpath, JXPathBindingBase[] childBindings)
          Constructs AggregateJXPathBinding
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Narrows the scope on the form-model to the member widget-field, and narrows the scope on the object-model to the member xpath-context before continuing the binding over the child-bindings.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Narrows the scope on the form-model to the member widget-field, and narrows the scope on the object-model to the member xpath-context before continuing the binding over the child-bindings.
 String toString()
           
 
Methods inherited from class org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
enableLogging, getChildBindings, getClass
 
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
getId, getLogger, getWidget, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregateJXPathBinding

public AggregateJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                              String widgetId,
                              String xpath,
                              JXPathBindingBase[] childBindings)
Constructs AggregateJXPathBinding

Parameters:
widgetId -
xpath -
childBindings -
Method Detail

doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Narrows the scope on the form-model to the member widget-field, and narrows the scope on the object-model to the member xpath-context before continuing the binding over the child-bindings.

Overrides:
doLoad in class ComposedJXPathBindingBase
Throws:
BindingException

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Narrows the scope on the form-model to the member widget-field, and narrows the scope on the object-model to the member xpath-context before continuing the binding over the child-bindings.

Overrides:
doSave in class ComposedJXPathBindingBase
Throws:
BindingException

toString

public String toString()
Overrides:
toString in class Object


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