|
||||||||||
| 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. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ComplexBinding |
|---|
parse |
| 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 int getExecutionMode()
Binding.OVERRIDE.
Subclasses should override to change this behaviour.
getExecutionMode in interface BindingBinding.AFTER,
Binding.BEFORE,
Binding.OVERRIDE
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
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 | |||||||||