org.apache.cocoon.woody.binding
Class ContextJXPathBinding
java.lang.Object
org.apache.cocoon.woody.binding.JXPathBindingBase
org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
org.apache.cocoon.woody.binding.ContextJXPathBinding
- All Implemented Interfaces:
- LogEnabled, Binding
public class ContextJXPathBinding
- extends ComposedJXPathBindingBase
ContextJXPathBinding provides an implementation of a Binding
that narrows the binding scope to some xpath-context on the target
objectModel to load and save from.
- Version:
- CVS $Id: ContextJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Constructor Summary |
ContextJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String contextPath,
JXPathBindingBase[] childBindings)
Constructs ContextJXPathBinding for the specified xpath sub-context |
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. |
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. |
String |
toString()
|
ContextJXPathBinding
public ContextJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String contextPath,
JXPathBindingBase[] childBindings)
- Constructs ContextJXPathBinding for the specified xpath sub-context
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.
- Overrides:
doLoad
in class ComposedJXPathBindingBase
- 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.
- 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.