|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.filter.DestinationMapNode
public class DestinationMapNode
An implementation class used to implement DestinationMap
Field Summary | |
---|---|
protected static String |
ANY_CHILD
|
protected static String |
ANY_DESCENDENT
|
Constructor Summary | |
---|---|
DestinationMapNode(DestinationMapNode parent)
|
Method Summary | |
---|---|
void |
add(String[] paths,
int idx,
Object value)
|
void |
appendDescendantValues(Set answer)
|
void |
appendMatchingValues(Set answer,
String[] paths,
int startIndex)
|
void |
appendMatchingWildcards(Set answer,
String[] paths,
int idx)
Matches any entries in the map containing wildcards |
protected DestinationMapNode |
createChildNode()
Factory method to create a child node |
DestinationMapNode |
getChild(String path)
Returns the child node for the given named path or null if it does not exist |
int |
getChildCount()
|
DestinationMapNode |
getChildOrCreate(String path)
Returns the child node for the given named path, lazily creating one if it does not yet exist |
Collection |
getChildren()
Returns the child nodes |
Set |
getDesendentValues()
Returns a list of all the values from this node down the tree |
String |
getPath()
|
List |
getValues()
Returns a mutable List of the values available at this node in the tree |
protected void |
pruneIfEmpty()
|
void |
remove(String[] paths,
int idx,
Object value)
|
void |
removeAll(Set answer,
String[] paths,
int startIndex)
|
protected void |
removeChild(DestinationMapNode node)
|
Set |
removeDesendentValues()
|
protected void |
removeDesendentValues(Set answer)
|
List |
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 |
Field Detail |
---|
protected static final String ANY_CHILD
protected static final String ANY_DESCENDENT
Constructor Detail |
---|
public DestinationMapNode(DestinationMapNode parent)
Method Detail |
---|
public DestinationMapNode getChild(String path)
getChild
in interface DestinationNode
public Collection getChildren()
getChildren
in interface DestinationNode
public int getChildCount()
public DestinationMapNode getChildOrCreate(String path)
public List getValues()
getValues
in interface DestinationNode
public List removeValues()
removeValues
in interface DestinationNode
public Set removeDesendentValues()
removeDesendentValues
in interface DestinationNode
protected void removeDesendentValues(Set answer)
public Set getDesendentValues()
getDesendentValues
in interface DestinationNode
public void add(String[] paths, int idx, Object value)
public void remove(String[] paths, int idx, Object value)
public void removeAll(Set answer, String[] paths, int startIndex)
public void appendDescendantValues(Set answer)
appendDescendantValues
in interface DestinationNode
protected DestinationMapNode createChildNode()
public void appendMatchingWildcards(Set answer, String[] paths, int idx)
appendMatchingWildcards
in interface DestinationNode
public void appendMatchingValues(Set answer, String[] paths, int startIndex)
appendMatchingValues
in interface DestinationNode
public String getPath()
protected void pruneIfEmpty()
protected void removeChild(DestinationMapNode node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |