|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.catalan.transform.BaseNodeProcessor org.umber.catalan.transform.xml.ObjectToDatum
A data processor which converts a List of java objects into Datum content. This processor accepts String, Number, and Date input, and produces only Datum output.
Constructor Summary | |
ObjectToDatum(Datum xml)
Creates a new instance of ObjectToDatum from the XML spec. |
|
ObjectToDatum(DirectiveStack stack)
Creates a new instance of ObjectToDatum. |
Method Summary | |
void |
end(java.util.List nodes)
Ends the current traversal. |
java.util.List |
processNode(java.lang.Object node)
Process a single node. |
void |
start(java.util.List nodes)
Starts a new traversal. |
java.lang.String |
toString()
Convert this object to a String value. |
Methods inherited from class org.umber.catalan.transform.BaseNodeProcessor |
addLeftover, getLeftovers, getNodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectToDatum(Datum xml)
xml
- XML initializing specpublic ObjectToDatum(DirectiveStack stack)
stack
- the stack of XML-creation operationsMethod Detail |
public void start(java.util.List nodes)
start
in interface INodeProcessor
start
in class BaseNodeProcessor
nodes
- the list of nodes that will later be traversedpublic void end(java.util.List nodes)
end()
, the processor should be ready
for the next new traversal.
end
in interface INodeProcessor
end
in class BaseNodeProcessor
nodes
- the list of nodes that has just been traversedpublic java.util.List processNode(java.lang.Object node)
node
- the node to process
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |