|
||||||||||
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
Common base class for all XForm operations.
Constructor Summary | |
XFormProcessor(java.lang.String query)
Creates a new instance of XFormProcessor. |
Method Summary | |
java.lang.String |
getQuery()
Retrieves the Bellows query path to select nodes to process. |
protected Datum[] |
getQueryNodes(Datum datum)
Finds the Datum nodes to perform the transformation on. |
java.util.List |
processNode(java.lang.Object node)
Process a single node. |
protected abstract Datum |
transformNode(Datum node,
Datum root)
Performs an in-place transformation on the supplied Datum tree. |
Methods inherited from class org.umber.catalan.transform.BaseNodeProcessor |
addLeftover, end, getLeftovers, getNodes, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XFormProcessor(java.lang.String query)
query
- a Bellows query path to select nodes to processMethod Detail |
protected Datum[] getQueryNodes(Datum datum)
datum
- the input datum tree to select nodes from
public java.lang.String getQuery()
public java.util.List processNode(java.lang.Object node)
node
- the node to process
protected abstract Datum transformNode(Datum node, Datum root)
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 |