|
||||||||||
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.xform.XFormProcessor org.umber.catalan.transform.xform.MoveProcessor
A Datum-only NodeProcessor for moving existing XML content to other parts of the same XML tree. Works on element content or on attributes.
Constructor Summary | |
MoveProcessor(Datum xml)
Creates a new instance of MoveProcessor from the XML spec. |
|
MoveProcessor(java.lang.String query,
java.lang.String destination,
java.lang.String attribute,
int position)
Creates a new instance of MoveProcessor. |
Method Summary | |
protected Datum[] |
getDestinationNodes(Datum datum)
Finds the Datum nodes to perform the transformation on. |
void |
start(java.util.List nodes)
Starts a new traversal. |
protected Datum |
transformNode(Datum node,
Datum root)
Performs an in-place transformation on the supplied Datum tree. |
Methods inherited from class org.umber.catalan.transform.xform.XFormProcessor |
getQuery, getQueryNodes, processNode |
Methods inherited from class org.umber.catalan.transform.BaseNodeProcessor |
addLeftover, end, getLeftovers, getNodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MoveProcessor(Datum xml)
xml
- XML initializing specpublic MoveProcessor(java.lang.String query, java.lang.String destination, java.lang.String attribute, int position)
query
- Bellows query path to select the source node(s)destination
- Bellows query path to select the destination node(s)attribute
- optional attribute nameposition
- the index position to insert nodes, or -1 to insert
at end of listMethod 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 traversedprotected Datum[] getDestinationNodes(Datum datum)
datum
- the input datum tree to select nodes from
protected Datum transformNode(Datum node, Datum root)
transformNode
in class XFormProcessor
node
- the current node to operate uponroot
- the root of the entire XML tree
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |