Class InsertNodeJXPathBinding

  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.InsertNodeJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

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.


  1. This Binding does not perform any actions when loading.
  2. This expects the back-end model to be an XML file.

CVS $Id: InsertNodeJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
Fields inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
classes, parent
Constructor Summary
InsertNodeJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, DocumentFragment domTemplate)
          Constructs InsertNodeJXPathBinding
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Do-nothing implementation of the interface.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Registers a JXPath Factory on the JXPath Context.
 String toString()
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
enableLogging, getClass, getId, getLogger, getWidget, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public InsertNodeJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                               DocumentFragment domTemplate)
Constructs InsertNodeJXPathBinding

Method Detail


public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
Do-nothing implementation of the interface.

Specified by:
doLoad in class JXPathBindingBase


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


public String toString()
toString in class Object

Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.