|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.ValueJXPathBinding
ValueJXPathBinding provides an implementation of a Binding
that loads and saves the information behind a specific xpath expresion
(pointing to an attribute or text-node) to and from a specific CForms
widget as identified by its id.
Field Summary |
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
classes, parent |
Constructor Summary | |
ValueJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String widgetId,
String xpath,
JXPathBindingBase[] updateBindings,
Convertor convertor,
Locale convertorLocale)
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)
Actively performs the binding from the CForms-form to the ObjectModel wrapped in a jxpath context |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
Convertor |
getConvertor()
|
Locale |
getConvertorLocale()
|
String |
getFieldId()
|
String |
getId()
Returns binding definition id. |
ComposedJXPathBindingBase |
getUpdateBinding()
|
String |
getXPath()
|
String |
toString()
|
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
getClass, getCommonAtts, getLocalLibrary, getLocation, getLogger, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setLocalLibary, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ValueJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, String xpath, JXPathBindingBase[] updateBindings, Convertor convertor, Locale convertorLocale)
convertor
- may be nullMethod Detail |
public String getId()
JXPathBindingBase
getId
in interface Binding
getId
in class JXPathBindingBase
public ComposedJXPathBindingBase getUpdateBinding()
public void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doLoad
in class JXPathBindingBase
BindingException
public void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doSave
in class JXPathBindingBase
BindingException
public String toString()
public void enableLogging(Logger logger)
JXPathBindingBase
super.enableLogging(logger)
in possible overriding versions.
enableLogging
in interface LogEnabled
enableLogging
in class JXPathBindingBase
public String getFieldId()
public String getXPath()
public Convertor getConvertor()
public Locale getConvertorLocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |