org.apache.cocoon.woody.binding
Class ValueJXPathBinding
java.lang.Object
org.apache.cocoon.woody.binding.JXPathBindingBase
org.apache.cocoon.woody.binding.ValueJXPathBinding
- All Implemented Interfaces:
- LogEnabled, Binding
public class ValueJXPathBinding
- extends JXPathBindingBase
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 Woody
widget as identified by its id.
- Version:
- CVS $Id: ValueJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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 Woody-form-widget specified in this object. |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Actively performs the binding from the Woody-form to the ObjectModel
wrapped in a jxpath context |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
String |
toString()
|
ValueJXPathBinding
public ValueJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String widgetId,
String xpath,
JXPathBindingBase[] updateBindings,
Convertor convertor,
Locale convertorLocale)
- Constructs FieldJXPathBinding.
- Parameters:
convertor
- may be null
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 Woody-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
- Actively performs the binding from the Woody-form to the ObjectModel
wrapped in a jxpath context
- Specified by:
doSave
in class JXPathBindingBase
- Throws:
BindingException
toString
public String toString()
- Overrides:
toString
in class Object
enableLogging
public void enableLogging(Logger logger)
- Description copied from class:
JXPathBindingBase
- Receives the Avalon logger to use.
Subclasses should always start with
super.enableLogging(logger)
in possible overriding versions.
- Specified by:
enableLogging
in interface LogEnabled
- Overrides:
enableLogging
in class JXPathBindingBase
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.