public interface IDfOperationNodeTreeBuilder
operation.add(object);
internally, nodeTreeBuilder.add(object) is invoked. At that time, the list of configured populators for
that operation is visited until a populator assumes responsibility for populating a node for that object.
A populator may result in invoking
nodeTreeBuilder.add(parentNode, edge, obj)
for all child objects. For instance, a directory populator would invoke add(parentNode, edge, obj) for all files
it contains. Or a populator might also invoke the add(obj) method if it decides that a particular logical child
object should be added as a root node.Modifier and Type | Method and Description |
---|---|
IDfOperationNode |
add(IDfOperationNode parentNode,
IDfNodeRelationship nodeRelationship,
java.lang.Object obj)
Results in appending a node for the corresponding object as a child node of the given parentNode by iterating
through list of populators for the operation.
|
IDfOperationNode |
add(java.lang.Object obj)
This method results in adding a node for the corresponding object as root node.
|
IDfOperationNode add(java.lang.Object obj) throws DfException
obj
- DfException
IDfOperationNode add(IDfOperationNode parentNode, IDfNodeRelationship nodeRelationship, java.lang.Object obj) throws DfException
parentNode
- A parent node. For example, when adding a directory for an import operation, this results in
adding a node for the directory itself and child nodes for the files it contains.nodeRelationship
- An operation edge represents the relationship between a parent node and the node
being added as result of execution of this method.obj
- Object for which a node needs to be createdDfException
Copyright 1994-2023 OpenText Corporation. All rights reserved.