| org.apache.cocoon.forms.binding.JXPathBindingBase
All known Subclasses: org.apache.cocoon.forms.binding.TempRepeaterJXPathBinding, org.apache.cocoon.forms.binding.TreeModelJXPath, org.apache.cocoon.forms.binding.InsertNodeJXPathBinding, org.apache.cocoon.forms.binding.ImportJXPathBinding, org.apache.cocoon.forms.binding.InsertBeanJXPathBinding, org.apache.cocoon.forms.binding.MultiValueJXPathBinding, org.apache.cocoon.forms.binding.RepeaterJXPathBinding, org.apache.cocoon.forms.binding.ValueJXPathBinding, org.apache.cocoon.forms.binding.CustomJXPathBinding, org.apache.cocoon.forms.binding.ComposedJXPathBindingBase, org.apache.cocoon.forms.binding.DeleteNodeJXPathBinding, org.apache.cocoon.forms.binding.SetAttributeJXPathBinding, org.apache.cocoon.forms.binding.SimpleRepeaterJXPathBinding, org.apache.cocoon.forms.binding.JavaScriptJXPathBinding,
JXPathBindingBase | abstract public class JXPathBindingBase extends AbstractLogEnabled implements Binding(Code) | | Provides a base class for hooking up Binding implementations that use the
Jakarta Commons
JXPath package.
version: $Id: JXPathBindingBase.java 506442 2007-02-12 13:52:53Z cziegeler $ |
Method Summary | |
abstract public void | doLoad(Widget frmModel, JXPathContext jxpc) Performs the actual load binding regardless of the configured value of the "direction" attribute. | abstract public void | doSave(Widget frmModel, JXPathContext jxpc) Performs the actual save binding regardless of the configured value of the "direction" attribute. | public Binding | getClass(String id) | public JXPathBindingBuilderBase.CommonAttributes | getCommonAtts() | public Library | getEnclosingLibrary() | public String | getId() Returns binding definition id. | public String | getLocation() Gets source location of this binding. | public boolean | isValid() | final public void | loadFormFromModel(Widget frmModel, JXPathContext jxpc) Redefines the Binding action as working on a JXPathContext Type rather
then on generic objects. | final public void | loadFormFromModel(Widget frmModel, Object objModel) Hooks up with the more generic Binding of any objectModel by wrapping
it up in a JXPathContext object and then transfering control over to
the new overloaded version of this method. | final public void | saveFormToModel(Widget frmModel, JXPathContext jxpc) Redefines the Binding action as working on a JXPathContext Type rather
then on generic objects. | public void | saveFormToModel(Widget frmModel, Object objModel) Hooks up with the more generic Binding of any objectModel by wrapping
it up in a JXPathContext object and then transfering control over to
the new overloaded version of this method. | protected Widget | selectWidget(Widget parent, String id) Helper method that selects a child-widget with a given id from a parent.
Parameters: parent - containing the child-widget to return. Parameters: id - of the childWidget to find, if this is null then the parent is returned. | public void | setEnclosingLibrary(Library lib) | public void | setParent(Binding binding) Sets parent binding. |
classes | protected Map classes(Code) | | Cache of class definitions
|
parent | protected Binding parent(Code) | | Parent binding of this binding.
|
doLoad | abstract public void doLoad(Widget frmModel, JXPathContext jxpc) throws BindingException(Code) | | Performs the actual load binding regardless of the configured value of the "direction" attribute.
Abstract method that subclasses need to implement for specific activity.
|
doSave | abstract public void doSave(Widget frmModel, JXPathContext jxpc) throws BindingException(Code) | | Performs the actual save binding regardless of the configured value of the "direction" attribute.
Abstract method that subclasses need to implement for specific activity.
|
getId | public String getId()(Code) | | Returns binding definition id.
|
getLocation | public String getLocation()(Code) | | Gets source location of this binding.
|
selectWidget | protected Widget selectWidget(Widget parent, String id)(Code) | | Helper method that selects a child-widget with a given id from a parent.
Parameters: parent - containing the child-widget to return. Parameters: id - of the childWidget to find, if this is null then the parent is returned. the selected widget throws: RuntimeException - if the id is not null and points to achild-widget that cannot be found. |
setParent | public void setParent(Binding binding)(Code) | | Sets parent binding.
|
|
|