org.writersforge.catalan.transform.xform
Class InlineProcessor
java.lang.Object
|
+--org.writersforge.catalan.transform.BaseNodeProcessor
|
+--org.writersforge.catalan.transform.xform.XFormProcessor
|
+--org.writersforge.catalan.transform.xform.InlineProcessor
- All Implemented Interfaces:
- org.writersforge.bellows.traverse.NodeProcessor
- public class InlineProcessor
- extends XFormProcessor
A Datum-only NodeProcessor for decreasing the level of nesting for the
queried set of elements. Deletes all queried nodes, but unlike the DeleteProcessor, it inserts all child nodes in place of the deleted
nodes. Thus, the inline processor does not recursively delete nodes.
- Author:
- jsheets
|
Constructor Summary |
InlineProcessor(java.lang.String query)
Creates a new instance of InlineProcessor. |
|
Method Summary |
protected void |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InlineProcessor
public InlineProcessor(java.lang.String query)
- Creates a new instance of InlineProcessor.
- Parameters:
query - Bellows query path to select the source node(s)
transformNode
protected void transformNode(org.writersforge.bellows.Datum node,
org.writersforge.bellows.Datum root)
- Performs an in-place transformation on the supplied Datum tree.
- Specified by:
transformNode in class XFormProcessor
- Parameters:
node - the current node to operate uponroot - the root of the entire XML tree