|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.utils.tree.filter.MergeTreeNodesFilter
TreeNode filter that uses another tree source to add attribute data from the source tree nodes
the target tree nodes. Uses a TreeSearchSource to
find matching nodes in the source tree.
<MergeNodeFilter class="com.raritantechnologies.utils.tree.filter.MergeTreeNodesFilter"
sourceTreeBuilder="[ name of source tree builder (system object ) ]"
debug_xml="[true|false(default)]"
debug="[true|false(default) ]" >
<SourceTreeBuilder class="[ class of com.raritantechnologies.utils.tree.ITreeBuilder ]" >
</SourceTreeBuilder>
<!-- Search attributes to use to match target TreeNode with a source node -->
<SearchAttributes caseSensitive="true(default)|false" fieldOperator="[AND|OR(default)]" >
<!-- one or more Attribute tags -->
<!-- target attribute can be one of Attribute:[attribute name ] or ResultPath:[ result path name ] -->
<Attribute targetAttribute="[ name of attribute in target node ]" searchField=[ name of field in search ]" />
<Attribute targetAttribute="[ name of attribute in target node ]" value=[ field value ]" />
</SearchAttributes>
<!-- One or more MergeNodeFilters to operate on the matching nodes -->
<MergeAttributesFilter class="[ class of com.raritantechnologies.utils.tree.filter.IMergeTreeNodesFilter ]" >
</MergeAttributesFilter>
</MergeNodeFilter>
| Field Summary |
| Fields inherited from interface com.raritantechnologies.utils.tree.filter.ITreeNodeFilter |
TEMPLATE |
| Constructor Summary | |
MergeTreeNodesFilter()
|
|
| Method Summary | |
TreeNode |
filterNode(TreeNode treeNode,
RaritanPageContext pageContext)
Filters a treeNode by adding attributes from matching node(s) in a source tree. |
TreeNode |
filterNode(TreeNode treeNode,
TreeRoot sourceTree,
RaritanPageContext pageContext)
Filters a 'target' TreeNode by looking up corresponding nodes in the source tree and adding attributes from the source tree to the target tree node. |
void |
initialize(org.w3c.dom.Element elem)
Initializes the object from an XML tag or element. |
void |
initializeTreeSearchSource()
|
TreeNode |
mergeNodes(TreeNode node1,
TreeNode node2,
TreeRoot sourceTree,
RaritanPageContext rpc)
Delegates merge operation to nested IMergeTreeNodesFilter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MergeTreeNodesFilter()
| Method Detail |
public TreeNode filterNode(TreeNode treeNode,
RaritanPageContext pageContext)
filterNode in interface ITreeNodeFilter
public TreeNode filterNode(TreeNode treeNode,
TreeRoot sourceTree,
RaritanPageContext pageContext)
public TreeNode mergeNodes(TreeNode node1,
TreeNode node2,
TreeRoot sourceTree,
RaritanPageContext rpc)
mergeNodes in interface IMergeTreeNodesFilterpublic void initializeTreeSearchSource()
public void initialize(org.w3c.dom.Element elem)
IConfigurable
initialize in interface IConfigurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||