|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xlattice.corexml.bind.Ordering
public abstract class Ordering
The set or sequence of Joins which bind XML element or attribute values with fields in an object which is an instance of a bound class. The Ordering may be sequential, in which case joined elements or attributes are matched in turn, or a set, in which case attributes or elements may appear in any order in the XML. Joins added to the Ordering may be either Bindings or SubMappings. Bindings either associate an attribute with a field in an object or associate the presence or value of a subelement. SubMappings map a child object to a parent. A Collector is used to map any number of child objects to a parent. XXX Set Orderings (Bags) are not supported in the current XXX implementation.
| Constructor Summary | |
|---|---|
protected |
Ordering()
No-arg constructor. |
| Method Summary | |
|---|---|
protected abstract void |
add(Join j)
Add a Join to the Ordering. |
protected abstract void |
apply(Element elm,
java.lang.Object o)
Apply the ordering to an XML element, using values of XML attributes and other Nodes to set fields in the object, create child objects, and so forth, recursively. |
protected abstract void |
generate(Element elm,
java.lang.Object o)
Use the Ordering to generate XML from a subtree of Java objects. |
protected java.lang.Class |
getClazz()
|
protected abstract void |
join(java.lang.Class clazz)
Set the joined class for all descendents. |
protected void |
setClazz(java.lang.Class clazz)
Set the Java class associated with the Ordering. |
protected abstract int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Ordering()
| Method Detail |
|---|
protected java.lang.Class getClazz()
protected void setClazz(java.lang.Class clazz)
protected abstract void add(Join j)
throws CoreXmlException
j - Join to be added
CoreXmlException
protected abstract void join(java.lang.Class clazz)
throws CoreXmlException
clazz - Class that descendents are to be joined to.
CoreXmlExceptionprotected abstract int size()
protected abstract void apply(Element elm,
java.lang.Object o)
throws CoreXmlException
elm - Element from which values will be drawno - object to which values will be assigned
CoreXmlException
protected abstract void generate(Element elm,
java.lang.Object o)
throws CoreXmlException
elm - XML Element to which child Nodes will be attachedo - Java object from which values will be drawn
CoreXmlException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||