org.apache.cocoon.woody.binding
Class ContextJXPathBinding

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
          extended by 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 $

Field Summary
 
Fields inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
classes, parent
 
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()
           
 
Methods inherited from class org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
enableLogging, getChildBindings, getClass
 
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
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

ContextJXPathBinding

public ContextJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                            String contextPath,
                            JXPathBindingBase[] childBindings)
Constructs ContextJXPathBinding for the specified xpath sub-context

Method Detail

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.