|
||||||||||
| 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.InsertProcessor
A Datum-only NodeProcessor for inserting static XML content into other parts of the same XML tree. Works on element content or on attributes.
| Constructor Summary | |
InsertProcessor(org.writersforge.bellows.Datum xml)
Creates a new instance of InsertProcessor from the XML spec. |
|
InsertProcessor(java.lang.String query,
org.writersforge.bellows.Datum newContent,
int position,
boolean expand)
Creates a new instance of InsertProcessor for element creation. |
|
InsertProcessor(java.lang.String query,
java.lang.String propertyName,
java.lang.String propertyValue)
Creates a new instance of InsertProcessor for attribute creation. |
|
| Method Summary | |
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 InsertProcessor(org.writersforge.bellows.Datum xml)
xml - XML initializing spec
public InsertProcessor(java.lang.String query,
org.writersforge.bellows.Datum newContent,
int position,
boolean expand)
query - Bellows query path to select the source node(s)newContent - static XML to insertposition - the index position to insert nodes, or -1 to insert
at end of listexpand - if true, resolve embedded query paths into live data
public InsertProcessor(java.lang.String query,
java.lang.String propertyName,
java.lang.String propertyValue)
query - Bellows query path to select the source node(s)propertyName - name of new attribute to createpropertyValue - value of new attribute| 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 traversed
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 | |||||||||