Constructor and Description |
---|
Graph() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
asNameSet(Set<T> nodeSet) |
void |
buildGraph() |
boolean |
containsNode(String name) |
int |
count() |
void |
dumpSelected() |
void |
dumpSelectedTree() |
protected void |
findChildren(T module,
Set<T> ret) |
protected void |
findParents(T module,
Map<String,T> ret) |
T |
get(String name) |
List<T> |
getMatching(Predicate predicate)
Get the Nodes from the tree that match the provided predicate.
|
int |
getMaxDepth() |
Set<T> |
getModulesAtDepth(int depth) |
Collection<String> |
getNodeNames() |
Collection<T> |
getNodes() |
String |
getNodeTerm() |
List<T> |
getSelected()
Get the list of Selected nodes.
|
String |
getSelectionTerm() |
Iterator<T> |
iterator() |
abstract void |
onNodeSelected(T node) |
T |
register(T node) |
Set<String> |
resolveChildNodesOf(String nodeName) |
abstract T |
resolveNode(String name)
Resolve a node just in time.
|
Set<String> |
resolveParentModulesOf(String nodeName) |
int |
selectNode(Predicate nodePredicate,
Selection selection) |
int |
selectNode(String name,
Selection selection) |
int |
selectNodes(Collection<String> names,
Selection selection) |
void |
setNodeTerm(String nodeTerm) |
void |
setSelectionTerm(String selectionTerm) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void buildGraph() throws FileNotFoundException, IOException
FileNotFoundException
IOException
public boolean containsNode(String name)
public int count()
public void dumpSelectedTree()
public void dumpSelected()
public List<T> getSelected()
public List<T> getMatching(Predicate predicate)
predicate
- the way to match nodespublic int getMaxDepth()
public Collection<String> getNodeNames()
public Collection<T> getNodes()
public String getNodeTerm()
public String getSelectionTerm()
public abstract void onNodeSelected(T node)
public abstract T resolveNode(String name)
Useful for nodes that are virtual/transient in nature (such as the jsp/jstl/alpn modules)
name
- the name of the node to resolvepublic int selectNodes(Collection<String> names, Selection selection)
public void setNodeTerm(String nodeTerm)
public void setSelectionTerm(String selectionTerm)
Copyright © 1995-2015 Webtide. All Rights Reserved.