org.apache.cocoon.woody.binding
Class SetAttributeJXPathBinding
java.lang.Object
org.apache.cocoon.woody.binding.JXPathBindingBase
org.apache.cocoon.woody.binding.SetAttributeJXPathBinding
- All Implemented Interfaces:
- LogEnabled, Binding
public class SetAttributeJXPathBinding
- extends JXPathBindingBase
SetAttributeJXPathBinding provides an implementation of a Binding
that sets a particular attribute to a fixed value upon save.
NOTES:
- This Binding does not perform any actions when loading.
- Version:
- CVS $Id: SetAttributeJXPathBinding.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Constructor Summary |
SetAttributeJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String attName,
String attValue)
Constructs SetAttributeJXPathBinding |
Method Summary |
void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Do-Nothing implementation. |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Sets the attribute value on the passed JXPathContext |
String |
toString()
|
SetAttributeJXPathBinding
public SetAttributeJXPathBinding(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts,
String attName,
String attValue)
- Constructs SetAttributeJXPathBinding
doLoad
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
- Do-Nothing implementation.
- Specified by:
doLoad
in class JXPathBindingBase
doSave
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
- Sets the attribute value on the passed JXPathContext
- Specified by:
doSave
in class JXPathBindingBase
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.