org.apache.cocoon.forms.binding
Class InsertNodeJXPathBinding
java.lang.Object
org.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.InsertNodeJXPathBinding
- All Implemented Interfaces:
- Binding, LogEnabled
- public class InsertNodeJXPathBinding
- extends JXPathBindingBase
InsertNodeJXPathBinding provides an implementation of a Binding
that inserts a clone of some 'template document-fragment' into the target
back-end model upon save.
NOTES:
- This Binding does not perform any actions when loading.
- This expects the back-end model to be an XML file.
- Version:
- $Id: InsertNodeJXPathBinding.java 289538 2005-09-16 13:46:22Z sylvain $
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
enableLogging, getClass, getCommonAtts, getId, getLocalLibrary, getLocation, getLogger, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setLocalLibary, setParent |
InsertNodeJXPathBinding
public InsertNodeJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
DocumentFragment domTemplate)
- Constructs InsertNodeJXPathBinding
getTemplate
public DocumentFragment getTemplate()
doLoad
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
- Do-nothing implementation of the interface.
- Specified by:
doLoad
in class JXPathBindingBase
doSave
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
- Registers a JXPath Factory on the JXPath Context.
The factory will inserts a clone of the 'template' DocumentFragment
inside this object into the target objectmodel.
- Specified by:
doSave
in class JXPathBindingBase
toString
public String toString()
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.