|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.utils.tree.TreeBuilderOutputProcessor
Creates a Tree from a set of IResultSet objects
generated by an ICollectionGateway. Then
uses a TreeXMLGenerator to create an XML output
of the tree which is then written to an output file.
<GatewayOutputProcessor class="com.raritantechnologies.utils.tree.TreeBuilderOutputProcessor"
treePathField="[result path to get tree paths from]"
treeName="[name of root node]"
treeRootClass="[optional class name of root node]"
treeNodeClass="[optional class name of nodes]"
filename="[name of output xml file]"
dbTreeManager="[ name of DBTreeManager ]"
addCounts="[true(default)|false]"
pathSeparator="[ tree path separator default='/' ]" >
<ResultAttributeMap>
<Field resultField="[ fieldID in result ]" attribute="[ tree node attribute ]" />
</ResultAttributeMap>
<!-- Optional ITreeNodeFilter -->
<TreeFilter >
<NodeFilter class="class of com.raritantechnologies.utils.tree.filter.ITreeNodeFilter ]" >
</NodeFilter>
</TreeFilter>
<!-- Optional ITreeXMLGenerator -->
<TreeXMLGenerator class="[ class of ITreeXMLGenerator ]"
rootTagName="[tag name of xml root]"
nodeTagName="[tag name of nodes]"
parentTagName="[tag name of parent node]" />
<!-- Optional ITreeProcessor -->
<TreeProcessor class="[ class of com.raritantechnologies.utils.tree.ITreeProcessor ]" >
</TreeProcessor>
<!-- A delegate IGatewayOutputProcessor: If this is used - tree will be converted to a set of IResult objects -->
<!-- and sent for processing. -->
<OutputProcessor class="[ class of com.raritantechnologies.searchApp.dataCollection.IGatewayOutputProcessor ]"
nameField="[ result field that gets TreeNode name ]"
idField="[ result field that gets treeNode ID ]" >
</OutputProcessor>
</GatewayOutputProcessor>
| Constructor Summary | |
TreeBuilderOutputProcessor()
|
|
| Method Summary | |
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
void |
initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Configuration Element. |
void |
initialize(java.util.Map initParams)
Use this to initialize dynamic properties: treePathField, treeName, outputFileName |
java.lang.String |
processData(IResultSet data)
returns name of XML File created/appended. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeBuilderOutputProcessor()
| Method Detail |
public java.lang.String processData(IResultSet data)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessorpublic void dataComplete()
IGatewayOutputProcessor
dataComplete in interface IGatewayOutputProcessorpublic void initialize(java.util.Map initParams)
initialize in interface IGatewayOutputProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessorpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||