|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BindingDefinition
Defines mapping of methods and interfaces to XML elements and attributes. All binding definition implementations of this interface don't need to implement standard object methods like equals(), hashCode(), toString() and clone(). These methods are implemented inside X2JB framework and provided implementation (if any) will be ignored.
Every binding definition implementation have to:
BindingException
,
BindingFactory
Method Summary | |
---|---|
java.lang.String |
getDefaultValue()
Default value to be used when node is missing in XML document. |
java.lang.String |
getNodeName()
Local name of the node to which mapping applies. |
java.lang.String |
getNodeNamespace()
Namespace of the node to which mapping applies - default is null representing no namespace. |
java.lang.String |
getTypeHandler()
Handler class name to be used during the binding process or null
forcing built-in handler to be used. |
boolean |
isElementNode()
Returns true if current node should be element node,
false if it should be attribute. |
boolean |
isNodeMandatory()
Returns true if node must be present in XML document,
false otherwise - default is true . |
boolean |
isNodeUnique()
If current node (with specified optional namespace and local name) should be the only one in the context node this method will return. |
Method Detail |
---|
java.lang.String getNodeName()
java.lang.String getNodeNamespace()
null
representing no namespace.
boolean isElementNode()
true
if current node should be element node,
false
if it should be attribute.
node - default is true
.
true
if current node should be element node,
false
otherwiseboolean isNodeMandatory()
true
if node must be present in XML document,
false
otherwise - default is true
.
true
if node must be present in XML document,
false
otherwiseboolean isNodeUnique()
true
, otherwise it will return false
- default is true
true
if current node should be the only one in the context node,
false
otherwisejava.lang.String getTypeHandler()
null
forcing built-in handler to be used.
null
forcing built-in handler to be usedAttributeHandler
,
ElementHandler
java.lang.String getDefaultValue()
null
representing no default value.
This default value will be set only in case isNodeMandatory()
returns false
otherwise BindingException
will be thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |