public class NavTreeIndex
extends java.lang.Object
Constructor and Description |
---|
NavTreeIndex(NavTree treeIn)
Public constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
computeActiveNodes(java.lang.String url,
java.lang.String lastActive)
Given a URL, compute the active nodes for the URL, altering the
state of the class.
|
NavNode |
getBestNode()
get the "best" node of that this index indexes.
|
NavTree |
getTree()
get the tree of that this index indexes
|
boolean |
isNodeActive(NavNode node)
simple method to ask if a given node is in the active set
|
static java.lang.String[] |
splitUrlPrefixes(java.lang.String urlIn)
Splits the given url string at the /.
|
public NavTreeIndex(NavTree treeIn)
treeIn
- the tree to indexpublic NavTree getTree()
public NavNode getBestNode()
public static java.lang.String[] splitUrlPrefixes(java.lang.String urlIn)
urlIn
- url string to be split.public java.lang.String computeActiveNodes(java.lang.String url, java.lang.String lastActive)
url
- string of form /foo/bar/bazlastActive
- the last computed ActiveNode URLpublic boolean isNodeActive(NavNode node)
node
- to test