org.apache.cocoon.woody.binding
Class MultiValueJXPathBinding

java.lang.Object
  extended by org.apache.cocoon.woody.binding.JXPathBindingBase
      extended by org.apache.cocoon.woody.binding.MultiValueJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

public class MultiValueJXPathBinding
extends JXPathBindingBase

Simple binding for multi fields: on save, first deletes the target data before recreating it from scratch.

Version:
CVS $Id: MultiValueJXPathBinding.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
MultiValueJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String multiValueId, String multiValuePath, String rowPath, JXPathBindingBase[] updateBindings, Convertor convertor, Locale convertorLocale)
           
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jctx)
          Performs the actual load binding regardless of the configured value of the "direction" attribute.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jctx)
          Performs the actual save binding regardless of the configured value of the "direction" attribute.
 void enableLogging(Logger logger)
          Receives the Avalon logger to use.
 String toString()
           
 
Methods inherited from class org.apache.cocoon.woody.binding.JXPathBindingBase
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

MultiValueJXPathBinding

public MultiValueJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                               String multiValueId,
                               String multiValuePath,
                               String rowPath,
                               JXPathBindingBase[] updateBindings,
                               Convertor convertor,
                               Locale convertorLocale)
Method Detail

doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jctx)
            throws BindingException
Description copied from class: JXPathBindingBase
Performs the actual load binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doLoad in class JXPathBindingBase
Throws:
BindingException

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jctx)
            throws BindingException
Description copied from class: JXPathBindingBase
Performs the actual save binding regardless of the configured value of the "direction" attribute. Abstract method that subclasses need to implement for specific activity.

Specified by:
doSave in class JXPathBindingBase
Throws:
BindingException

toString

public String toString()
Overrides:
toString in class Object

enableLogging

public void enableLogging(Logger logger)
Description copied from class: JXPathBindingBase
Receives the Avalon logger to use. Subclasses should always start with super.enableLogging(logger) in possible overriding versions.

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


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