|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INodeWalker
Method Summary | |
---|---|
void |
addNodeFilter(INodeFilter filter)
adds a filter to the list of filters through which nodes will be passed when successor nodes are retreaved via the getFilteredSuccessorNodes method. |
Object[] |
getFilteredSuccessorNodes(Object node)
retreave the direct successors of the given element that pass each of the node filters added via the addNodeFilter method. |
Object[] |
getPredecessorNodes(Object node)
retreave the direct predecessors of the given element. |
Object[] |
getStartNodes()
get the starting nodes of the graph. |
Object[] |
getSuccessorNodes(Object node)
retreave the direct successors of the given element. |
INodeFilter[] |
removeAllFilters()
removes all filters from this walker |
void |
removeNodeFilter(INodeFilter filter)
removes the specified filter from the list of filters through which a node is passed when getFilteredSuccessorNodes is called. |
Method Detail |
---|
void addNodeFilter(INodeFilter filter)
getFilteredSuccessorNodes
method.
If an identical filter is already in the list of filters, this method does nothing.
filter
- getFilteredSuccessorNodes(Object)
void removeNodeFilter(INodeFilter filter)
getFilteredSuccessorNodes
is called.
filter
- getFilteredSuccessorNodes(Object)
INodeFilter[] removeAllFilters()
Object[] getStartNodes()
Object[] getPredecessorNodes(Object node) throws InvalidComponentException
node
- - node for which direct predecessors are desired
InvalidComponentException
Object[] getSuccessorNodes(Object node) throws InvalidComponentException
node
- - node for which direct successors are desired
InvalidComponentException
Object[] getFilteredSuccessorNodes(Object node) throws InvalidComponentException
addNodeFilter
method. The direct successors of the
given element are those elements that are connected to the given element via a single edge and
serve as tails on that edge, permitting the given element to serve as the head.
If no filters have been added or if all filters pass all successor nodes, then this method is
equivalent to getSuccessorNodes
.
node
- - node for which direct successors are desired
InvalidComponentException
addNodeFilter(INodeFilter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |