|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.transform.BaseNodeProcessor
org.writersforge.catalan.transform.xform.XFormProcessor
org.writersforge.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(org.writersforge.bellows.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 org.writersforge.bellows.Datum[] |
getDestinationNodes(org.writersforge.bellows.Datum datum)
Finds the Datum nodes to perform the transformation on. |
void |
start(java.util.List nodes)
Starts a new traversal. |
protected org.writersforge.bellows.Datum |
transformNode(org.writersforge.bellows.Datum node,
org.writersforge.bellows.Datum root)
Performs an in-place transformation on the supplied Datum tree. |
| Methods inherited from class org.writersforge.catalan.transform.xform.XFormProcessor |
getQuery, getQueryNodes, processNode |
| Methods inherited from class org.writersforge.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(org.writersforge.bellows.Datum xml)
xml - XML initializing spec
public 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 list| Method Detail |
public void start(java.util.List nodes)
start in interface org.writersforge.bellows.traverse.NodeProcessorstart in class BaseNodeProcessornodes - the list of nodes that will later be traversedprotected org.writersforge.bellows.Datum[] getDestinationNodes(org.writersforge.bellows.Datum datum)
datum - the input datum tree to select nodes from
protected org.writersforge.bellows.Datum transformNode(org.writersforge.bellows.Datum node,
org.writersforge.bellows.Datum root)
transformNode in class XFormProcessornode - 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 | |||||||||