org.apache.cocoon.forms.binding
Class TreeModelJXPath

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.forms.binding.JXPathBindingBase
          extended byorg.apache.cocoon.forms.binding.TreeModelJXPath
All Implemented Interfaces:
Binding

public class TreeModelJXPath
extends JXPathBindingBase


Field Summary
 
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
TreeModelJXPath(JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, String xpath)
          Constructs FieldJXPathBinding.
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Actively performs the binding from the ObjectModel wrapped in a jxpath context to the CForms-form-widget specified in this object.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Performs the actual save binding regardless of the configured value of the "direction" attribute.
 String getId()
          Returns binding definition id.
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
getClass, getCommonAtts, getEnclosingLibrary, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeModelJXPath

public TreeModelJXPath(JXPathBindingBuilderBase.CommonAttributes commonAtts,
                       String widgetId,
                       String xpath)
Constructs FieldJXPathBinding.

Method Detail

getId

public String getId()
Description copied from class: JXPathBindingBase
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)
            throws BindingException
Actively performs the binding from the ObjectModel wrapped in a jxpath context to the CForms-form-widget specified in this object.

Specified by:
doLoad in class JXPathBindingBase
Throws:
BindingException

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Description copied from class: JXPathBindingBase
Performs the actual save binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doSave in class JXPathBindingBase
Throws:
BindingException


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