org.apache.cocoon.forms.binding
Class NewJXPathBinding

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.forms.binding.JXPathBindingBase
          extended byorg.apache.cocoon.forms.binding.ComposedJXPathBindingBase
              extended byorg.apache.cocoon.forms.binding.NewJXPathBinding
All Implemented Interfaces:
Binding

public class NewJXPathBinding
extends ComposedJXPathBindingBase

NewJXPathBinding provides an implementation of a Binding that references a class of bindings.

NOTES:

  1. This Binding assumes that the provided widget-id points to a class that contains other widgets.

Version:
$Id: NewJXPathBinding.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
NewJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, JXPathBindingBase[] childBindings)
          Constructs NewJXPathBinding
 
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.ComposedJXPathBindingBase
getChildBindings, getClass, getXPath
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
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, wait, wait, wait
 

Constructor Detail

NewJXPathBinding

public NewJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
                        String widgetId,
                        JXPathBindingBase[] childBindings)
Constructs NewJXPathBinding

Parameters:
commonAtts -
widgetId -
childBindings -
Method Detail

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 ComposedJXPathBindingBase
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 ComposedJXPathBindingBase
Throws:
BindingException

toString

public String toString()


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.