org.apache.cocoon.woody.binding
Class UniqueFieldJXPathBinding

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

public class UniqueFieldJXPathBinding
extends JXPathBindingBase

UniqueFieldJXPathBinding provides an implementation of a Binding that that allows the specification of a uniquefields defined inside a repeater.

NOTES:

  1. This Binding uses the provided widget-id of a defined field in the repeater.

Version:
CVS $Id: UniqueFieldJXPathBinding.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
UniqueFieldJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts, String widgetId, String xpath, Convertor convertor, Locale convertorLocale)
          Constructs UniqueFieldJXPathBinding.
 
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-widget specified in this object.
 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
 Convertor getConvertor()
           
 Locale getConvertorLocale()
           
 String getFieldId()
           
 String getXpath()
           
 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

UniqueFieldJXPathBinding

public UniqueFieldJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
                                String widgetId,
                                String xpath,
                                Convertor convertor,
                                Locale convertorLocale)
Constructs UniqueFieldJXPathBinding.

Parameters:
convertor - may be null
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-widget specified in this object.

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 wrapped in a jxpath context

Specified by:
doSave in class JXPathBindingBase
Throws:
BindingException

toString

public String toString()
Overrides:
toString in class Object

getConvertor

public Convertor getConvertor()
Returns:
Returns the convertor.

getConvertorLocale

public Locale getConvertorLocale()
Returns:
Returns the convertorLocale.

getFieldId

public String getFieldId()
Returns:
Returns the fieldId.

getXpath

public String getXpath()
Returns:
Returns the xpath.


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