|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.binding.JXPathBindingBuilderBase
public abstract class JXPathBindingBuilderBase
Abstract base class enabling logging and supporting the interpretation of
common configuration settings on all specific implementations of
JXPathBindingBase
.
Common supported configurations: getCommonAttributes(Element)
Nested Class Summary | |
---|---|
static class |
JXPathBindingBuilderBase.CommonAttributes
CommonAttributes is a simple helper class for holding the distinct data member fields indicating the activity of the separate load and save actions of a given binding. |
Constructor Summary | |
---|---|
JXPathBindingBuilderBase()
|
Method Summary | |
---|---|
abstract JXPathBindingBase |
buildBinding(Element bindingElm,
JXPathBindingManager.Assistant assistant)
Builds a configured binding object based on the configuration as described in the bindingElement. |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
protected static JXPathBindingBuilderBase.CommonAttributes |
getCommonAttributes(Element bindingElm)
Helper method for interpreting the common attributes which are supported on each of the Bindings. |
protected Logger |
getLogger()
Makes the logger available to the subclasses. |
static JXPathBindingBuilderBase.CommonAttributes |
mergeCommonAttributes(JXPathBindingBuilderBase.CommonAttributes existing,
JXPathBindingBuilderBase.CommonAttributes extra)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JXPathBindingBuilderBase()
Method Detail |
---|
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
protected Logger getLogger()
public abstract JXPathBindingBase buildBinding(Element bindingElm, JXPathBindingManager.Assistant assistant) throws BindingException
bindingElm
- assistant
-
BindingException
protected static JXPathBindingBuilderBase.CommonAttributes getCommonAttributes(Element bindingElm) throws BindingException
@direction
can hold one of the following values:
'load'
: This binding will only load.'save'
: This binding will only save.'both'
: This binding will perform both operations.@lenient
can either be:
'true'
: This binding will set the jxpath context to
be lenient towards the usage of inexisting paths on the back-end model.'false'
: This binding will set the jxpath context to be
strict and throwing exceptions for the usage of inexisting paths on the
back-end model.(unset)
: This binding will not change the leniency behaviour
on the jxpath this binding receives from his parent binding.
bindingElm
-
BindingException
public static JXPathBindingBuilderBase.CommonAttributes mergeCommonAttributes(JXPathBindingBuilderBase.CommonAttributes existing, JXPathBindingBuilderBase.CommonAttributes extra)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |