|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.apollo.util.path.PathMapNode<Value>
public class PathMapNode<Value>
An implementation class used to implement PathMap
Constructor Summary | |
---|---|
PathMapNode(PathMapNode<Value> parent)
|
Method Summary | |
---|---|
void |
add(Path path,
int idx,
Value value)
|
void |
appendDescendantValues(java.util.Set<Value> answer)
|
void |
appendMatchingValues(java.util.Set<Value> answer,
Path path,
int startIndex)
|
void |
appendMatchingWildcards(java.util.Set<Value> answer,
Path parts,
int idx)
Matches any entries in the map containing wildcards |
protected PathMapNode<Value> |
createChildNode()
Factory method to create a child node |
PathMapNode<Value> |
getChild(Part part)
Returns the child node for the given named path or null if it does not exist |
int |
getChildCount()
|
PathMapNode<Value> |
getChildOrCreate(Part part)
Returns the child node for the given named path, lazily creating one if it does not yet exist |
java.util.Collection<PathNode<Value>> |
getChildren()
Returns the child nodes |
java.util.Set<Value> |
getDesendentValues()
Returns a list of all the values from this node down the tree |
Part |
getPart()
|
java.util.List<Value> |
getValues()
Returns a mutable List of the values available at this node in the tree |
protected void |
pruneIfEmpty()
|
boolean |
remove(Path path,
int idx,
Value value)
|
void |
removeAll(java.util.Set<Value> answer,
Path path,
int startIndex)
|
protected void |
removeChild(PathMapNode<Value> node)
|
java.util.Set<Value> |
removeDesendentValues()
|
protected void |
removeDesendentValues(java.util.Set<Value> answer)
|
java.util.List<Value> |
removeValues()
Returns a mutable List of the values available at this node in the tree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathMapNode(PathMapNode<Value> parent)
Method Detail |
---|
public PathMapNode<Value> getChild(Part part)
getChild
in interface PathNode<Value>
public java.util.Collection<PathNode<Value>> getChildren()
getChildren
in interface PathNode<Value>
public int getChildCount()
public PathMapNode<Value> getChildOrCreate(Part part)
public java.util.List<Value> getValues()
getValues
in interface PathNode<Value>
public java.util.List<Value> removeValues()
removeValues
in interface PathNode<Value>
public java.util.Set<Value> removeDesendentValues()
removeDesendentValues
in interface PathNode<Value>
protected void removeDesendentValues(java.util.Set<Value> answer)
public java.util.Set<Value> getDesendentValues()
getDesendentValues
in interface PathNode<Value>
public void add(Path path, int idx, Value value)
public boolean remove(Path path, int idx, Value value)
public void removeAll(java.util.Set<Value> answer, Path path, int startIndex)
public void appendDescendantValues(java.util.Set<Value> answer)
appendDescendantValues
in interface PathNode<Value>
protected PathMapNode<Value> createChildNode()
public void appendMatchingWildcards(java.util.Set<Value> answer, Path parts, int idx)
appendMatchingWildcards
in interface PathNode<Value>
public void appendMatchingValues(java.util.Set<Value> answer, Path path, int startIndex)
appendMatchingValues
in interface PathNode<Value>
public Part getPart()
protected void pruneIfEmpty()
protected void removeChild(PathMapNode<Value> node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |