org.apache.cocoon.forms.binding
Class StructJXPathBinding
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.ComposedJXPathBindingBase
org.apache.cocoon.forms.binding.ContextJXPathBinding
org.apache.cocoon.forms.binding.StructJXPathBinding
- All Implemented Interfaces:
- LogEnabled, Binding
public class StructJXPathBinding
- extends ContextJXPathBinding
StructJXPathBinding provides an implementation of a Binding
that narrows the context towards provided childbindings.
NOTES:
- This Binding assumes that the provided widget-id points to a widget
that contains other widgets.
- Version:
- $Id: StructJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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.JXPathBindingBase |
getCommonAtts, getEnclosingLibrary, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent |
StructJXPathBinding
public StructJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String widgetId,
String xpath,
JXPathBindingBase[] childBindings)
- Constructs StructJXPathBinding
- Parameters:
widgetId
- xpath
- childBindings
-
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
- 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 ContextJXPathBinding
- Throws:
BindingException
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 ContextJXPathBinding
- Throws:
BindingException
toString
public String toString()
- Overrides:
toString
in class ContextJXPathBinding
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.