|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractComplexBinding
public abstract class AbstractComplexBinding
Base class for complex bindings.
| Field Summary |
|---|
| Fields inherited from interface Binding |
|---|
AFTER, BEFORE, OVERRIDE |
| Constructor Summary | |
|---|---|
AbstractComplexBinding()
|
|
| Method Summary | |
|---|---|
Element |
encode(Object object,
Document document,
Element value)
Subclasses should ovverride this method if need be, the default implementation returns value. |
int |
getExecutionMode()
This implementation returns Binding.OVERRIDE. |
List |
getProperties(Object object)
Deprecated. use getProperties(Object, XSDElementDeclaration) |
List |
getProperties(Object object,
XSDElementDeclaration element)
Subclasses should override this method if need be, the default implementation returns null. |
Object |
getProperty(Object object,
QName name)
Subclasses should override this method if need be, the default implementation returns null. |
void |
initialize(ElementInstance instance,
Node node,
MutablePicoContainer context)
Does nothing, subclasses should override this method. |
void |
initializeChildContext(ElementInstance childInstance,
Node node,
MutablePicoContainer context)
Does nothing, subclasses should override this method. |
Object |
parse(ElementInstance instance,
Node node,
Object value)
Subclasses should override this method, the default implementation return null. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface Binding |
|---|
getTarget, getType |
| Constructor Detail |
|---|
public AbstractComplexBinding()
| Method Detail |
|---|
public void initializeChildContext(ElementInstance childInstance,
Node node,
MutablePicoContainer context)
initializeChildContext in interface ComplexBindingnode - The parse node for the parent element.context - the context in which the child element will be parsed.
public void initialize(ElementInstance instance,
Node node,
MutablePicoContainer context)
initialize in interface ComplexBindinginstance - The element being parsed.node - The node in the parse tree representing the element being
parsed. It is important to note that at the time this method is called
the node contains no child element nodes, only child attribute nodes.context - The container to be used as context for child binding.public int getExecutionMode()
Binding.OVERRIDE.
Subclasses should override to change this behaviour.
getExecutionMode in interface BindingBinding.AFTER,
Binding.BEFORE,
Binding.OVERRIDE
public Object parse(ElementInstance instance,
Node node,
Object value)
throws Exception
null.
parse in interface ComplexBindinginstance - The element being parsed.node - The node in the parse tree representing the element being
parsed.value - The result of the parse from another strategy in the type
hierarchy. Could be null if this is the first strategy being executed.
Exception - Strategy objects should not attempt to handle any exceptions.
public Element encode(Object object,
Document document,
Element value)
throws Exception
encode in interface ComplexBindingobject - The object being encoded.document - The document containing the encoded element.value - The object as encoded by the parent binding.
null
ExceptionComplexBinding.encode(Object, Document, Element).
public Object getProperty(Object object,
QName name)
throws Exception
null.
getProperty in interface ComplexBindingobject - The object being encoded.name - The name of the property to obtain.
null.
ExceptionComplexBinding.getProperty(Object, QName)
public List getProperties(Object object)
throws Exception
getProperties(Object, XSDElementDeclaration)
null.
Note that this method only needs to be implemented for schema types which are open-ended in which the contents are not specifically specified by the schema.
getProperties in interface ComplexBindingobject - the object being encoded.
ExceptionComplexBinding.getProperties(Object)
public List getProperties(Object object,
XSDElementDeclaration element)
throws Exception
null.
Note that this method only needs to be implemented for schema types which are open-ended in which the contents are not specifically specified by the schema.
getProperties in interface ComplexBindingobject - the object being encoded.
ExceptionComplexBinding.getProperties(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||