|
||||||||||
| 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.text.Concatenator
A processor which converts all input nodes into String formats and
concatenates them into a single output String node. Calls
String.valueOf() on most nodes, but will convert Datum trees
into XML before concatenating them.
| Constructor Summary | |
Concatenator(org.writersforge.bellows.Datum xml)
Creates a new instance of Concatenator from the XML spec. |
|
Concatenator(int count,
java.lang.String separator)
Creates a new instance of Concatenator with a maximum node count and a separator. |
|
| Method Summary | |
void |
end(java.util.List nodes)
Ends the current traversal. |
java.util.List |
processNode(java.lang.Object node)
Process a single node. |
void |
start(java.util.List nodes)
Starts a new traversal. |
| Methods inherited from class org.writersforge.catalan.transform.BaseNodeProcessor |
addLeftover, getLeftovers, getNodes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Concatenator(org.writersforge.bellows.Datum xml)
xml - XML initializing spec
public Concatenator(int count,
java.lang.String separator)
count - the maximum number of input data nodes to concatenateseparator - text to place between each node in the final output| 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 traversedpublic void end(java.util.List nodes)
end(), the processor should be ready
for the next new traversal.
end in interface org.writersforge.bellows.traverse.NodeProcessorend in class BaseNodeProcessornodes - the list of nodes that has just been traversedpublic java.util.List processNode(java.lang.Object node)
node - the node to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||