org.plasma.sdo.core
Class ContainmentGraphCollector
java.lang.Object
org.plasma.sdo.core.ContainmentGraphCollector
- All Implemented Interfaces:
- PlasmaDataGraphVisitor
public class ContainmentGraphCollector
- extends Object
- implements PlasmaDataGraphVisitor
Visits a data graph from a given source/root,
collecting the source and
any contained nodes from the source which are
part of the contiguous containment hierarchy. Clients
must call accept() passing
this visitor to trigger the traversal from a given source
data object.
- See Also:
PlasmaDataGraphVisitor
|
Method Summary |
List<ContainmentNode> |
getResult()
Returns the nodes which are
part of the contiguous containment hierarchy from
the given source. |
void |
visit(DataObject target,
DataObject source,
String sourcePropertyName,
int level)
Called by the graph traversal algorithm (as
part of the visitor pattern) when a graph node
is encountered. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainmentGraphCollector
public ContainmentGraphCollector()
visit
public void visit(DataObject target,
DataObject source,
String sourcePropertyName,
int level)
- Called by the graph traversal algorithm (as
part of the visitor pattern) when a graph node
is encountered.
- Specified by:
visit in interface PlasmaDataGraphVisitor
getResult
public List<ContainmentNode> getResult()
- Returns the nodes which are
part of the contiguous containment hierarchy from
the given source.
- Returns:
- the nodes which are
part of the contiguous containment hierarchy from
the given source.
Copyright © 2014. All rights reserved.