org.apache.cocoon.forms.binding
Class CustomJXPathBinding
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.CustomJXPathBinding
- All Implemented Interfaces:
- Binding
- public class CustomJXPathBinding
- extends JXPathBindingBase
CustomJXPathBinding
|
Method Summary |
void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Delegates the actual loading operation to the provided Custom Binding Class
after narrowing down on the selected widget (@id) and context (@path) |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Delegates the actual saving operation to the provided Custom Binding Class
after narrowing down on the selected widget (@id) and context (@path) |
String |
getId()
Returns binding definition id. |
AbstractCustomBinding |
getWrappedBinding()
|
String |
getXPath()
|
| 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 |
CustomJXPathBinding
public CustomJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String widgetId,
String xpath,
AbstractCustomBinding wrappedBinding)
- Constructs CustomJXPathBinding
- Parameters:
commonAtts - common configuration attributes JXPathBindingBuilderBase.CommonAttributeswidgetId - id of the widget to bind toxpath - jxpath expression to narrow down the context to before calling the wrapped BindingwrappedBinding - the actual custom written Binding implementation of Binding
getXPath
public String getXPath()
getId
public String getId()
- Description copied from class:
JXPathBindingBase
- Returns binding definition id.
- Specified by:
getId in interface Binding- Overrides:
getId in class JXPathBindingBase
getWrappedBinding
public AbstractCustomBinding getWrappedBinding()
doLoad
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
- Delegates the actual loading operation to the provided Custom Binding Class
after narrowing down on the selected widget (@id) and context (@path)
- Specified by:
doLoad in class JXPathBindingBase
- Parameters:
frmModel - the narrowed widget-scope from the parent bindingjxpc - the narrowed jxpath context from the parent binding
- Throws:
BindingException - when the wrapped CustomBinding fails
doSave
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
- Delegates the actual saving operation to the provided Custom Binding Class
after narrowing down on the selected widget (@id) and context (@path)
- Specified by:
doSave in class JXPathBindingBase
- Parameters:
frmModel - the narrowed widget-scope from the parent bindingjxpc - the narrowed jxpath context from the parent binding
- Throws:
BindingException - when the wrapped CustomBinding fails
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.