org.apache.cocoon.woody.binding
Class ComposedJXPathBindingBase

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.ComposedJXPathBindingBase
All Implemented Interfaces:
LogEnabled, Binding
Direct Known Subclasses:
AggregateJXPathBinding, CaseJXPathBinding, ClassJXPathBinding, ContextJXPathBinding, NewJXPathBinding, StructJXPathBinding, UnionJXPathBinding

public class ComposedJXPathBindingBase
extends JXPathBindingBase

ComposedJXPathBindingBase provides a helper base class for subclassing into specific JXPathBindingBase implementations that have nested child-bindings.

Version:
CVS $Id: ComposedJXPathBindingBase.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
protected ComposedJXPathBindingBase(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, JXPathBindingBase[] childBindings)
          Constructs ComposedJXPathBindingBase
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Actively performs the binding from the ObjectModel to the Woody-form by passing the task onto it's children.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Actively performs the binding from the Woody-form to the ObjectModel by passing the task onto it's children.
 void enableLogging(Logger logger)
          Receives the logger to use for logging activity, and hands it over to the nested children.
 JXPathBindingBase[] getChildBindings()
          Returns child bindings.
 Binding getClass(String id)
          Gets a binding class by id.
 
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, toString, wait, wait, wait
 

Constructor Detail

ComposedJXPathBindingBase

protected ComposedJXPathBindingBase(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                                    JXPathBindingBase[] childBindings)
Constructs ComposedJXPathBindingBase

Parameters:
childBindings - sets the array of childBindings
Method Detail

enableLogging

public void enableLogging(Logger logger)
Receives the logger to use for logging activity, and hands it over to the nested children.

Specified by:
enableLogging in interface LogEnabled
Overrides:
enableLogging in class JXPathBindingBase

getClass

public Binding getClass(String id)
Gets a binding class by id.

Specified by:
getClass in interface Binding
Overrides:
getClass in class JXPathBindingBase
Parameters:
id - Id of binding class to get.

getChildBindings

public JXPathBindingBase[] getChildBindings()
Returns child bindings.


doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Actively performs the binding from the ObjectModel to the Woody-form by passing the task onto it's children.

Specified by:
doLoad in class JXPathBindingBase
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 by passing the task onto it's children.

Specified by:
doSave in class JXPathBindingBase
Throws:
BindingException


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