org.apache.cocoon.forms.binding
Class ClassJXPathBinding

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.binding.JXPathBindingBase
          extended by org.apache.cocoon.forms.binding.ComposedJXPathBindingBase
              extended by org.apache.cocoon.forms.binding.ClassJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

public class ClassJXPathBinding
extends ComposedJXPathBindingBase

ClassJXPathBinding provides an implementation of a Binding which allows the specification of a class of reusable bindings.

NOTES:

  1. This Binding uses the provided widget-id as the name for the class.

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

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
ClassJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, JXPathBindingBase[] childBindings)
          Constructs ClassJXPathBinding
 
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 getId()
          Returns binding definition id.
 String toString()
           
 
Methods inherited from class org.apache.cocoon.forms.binding.ComposedJXPathBindingBase
enableLogging, getChildBindings, getClass, getXPath
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
getCommonAtts, getEnclosingLibrary, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassJXPathBinding

public ClassJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
                          String widgetId,
                          JXPathBindingBase[] childBindings)
Constructs ClassJXPathBinding

Parameters:
commonAtts -
widgetId -
childBindings -
Method Detail

getId

public String getId()
Returns binding definition id.

Specified by:
getId in interface Binding
Overrides:
getId in class JXPathBindingBase

doLoad

public 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.

Overrides:
doLoad in class ComposedJXPathBindingBase

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.