|
||||||||||
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)
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 |
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 ComplexBinding
node
- The parse node for the parent element.context
- the context in which the child element will be parsed.public int getExecutionMode()
Binding.OVERRIDE
.
Subclasses should override to change this behaviour.
getExecutionMode
in interface Binding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public Object parse(ElementInstance instance, Node node, Object value) throws Exception
null
.
parse
in interface ComplexBinding
instance
- 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 ComplexBinding
object
- The object being encoded.document
- The document containing the encoded element.value
- The object as encoded by the parent binding.
null
Exception
ComplexBinding.encode(Object, Document, Element).
public Object getProperty(Object object, QName name) throws Exception
null
.
getProperty
in interface ComplexBinding
object
- The object being encoded.name
- The name of the property to obtain.
null
.
Exception
ComplexBinding.getProperty(Object, QName)
public List getProperties(Object object) 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 ComplexBinding
object
- the object being encoded.
Exception
ComplexBinding.getProperties(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |