|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.woody.binding.JXPathBindingBase
public abstract class JXPathBindingBase
Provides a base class for hooking up Binding implementations that use the Jakarta Commons JXPath package.
Field Summary | |
---|---|
protected Map |
classes
Cache of class definitions |
protected Binding |
parent
Parent binding of this binding. |
Constructor Summary | |
---|---|
protected |
JXPathBindingBase(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts)
|
Method Summary | |
---|---|
abstract void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Performs the actual load binding regardless of the configured value of the "direction" attribute. |
abstract void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Performs the actual save binding regardless of the configured value of the "direction" attribute. |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
Binding |
getClass(String id)
Gets a binding class. |
String |
getId()
Returns binding definition id. |
protected Logger |
getLogger()
|
protected Widget |
getWidget(Widget widget,
String id)
|
void |
loadFormFromModel(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Redefines the Binding action as working on a JXPathContext Type rather then on generic objects. |
void |
loadFormFromModel(Widget frmModel,
Object objModel)
Hooks up with the more generic Binding of any objectModel by wrapping it up in a JXPathContext object and then transfering control over to the new overloaded version of this method. |
void |
saveFormToModel(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
Redefines the Binding action as working on a JXPathContext Type rather then on generic objects. |
void |
saveFormToModel(Widget frmModel,
Object objModel)
Hooks up with the more generic Binding of any objectModel by wrapping it up in a JXPathContext object and then transfering control over to the new overloaded version of this method. |
void |
setParent(Binding binding)
Sets parent binding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Binding parent
protected Map classes
Constructor Detail |
---|
protected JXPathBindingBase(org.apache.cocoon.woody.binding.JXPathBindingBuilderBase.CommonAttributes commonAtts)
Method Detail |
---|
public void setParent(Binding binding)
setParent
in interface Binding
binding
- Parent of this binding.public String getId()
getId
in interface Binding
public Binding getClass(String id)
Binding
getClass
in interface Binding
id
- Id of binding class to get.protected Widget getWidget(Widget widget, String id)
public abstract void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
BindingException
public final void loadFormFromModel(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doLoad(Widget, JXPathContext)
depending on the configured value of the "direction" attribute.
BindingException
public final void loadFormFromModel(Widget frmModel, Object objModel) throws BindingException
loadFormFromModel
in interface Binding
BindingException
public abstract void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
BindingException
public final void saveFormToModel(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc) throws BindingException
doSave(Widget, JXPathContext)
depending on the configured value of the "direction" attribute.
BindingException
public void saveFormToModel(Widget frmModel, Object objModel) throws BindingException
saveFormToModel
in interface Binding
BindingException
public void enableLogging(Logger logger)
super.enableLogging(logger)
in possible overriding versions.
enableLogging
in interface LogEnabled
protected Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |