Package org.apache.activemq.filter
Class DestinationMapNode
java.lang.Object
org.apache.activemq.filter.DestinationMapNode
- All Implemented Interfaces:
DestinationNode
An implementation class used to implement
DestinationMap-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidappendDescendantValues(Set answer) voidappendMatchingValues(Set<DestinationNode> answer, String[] paths, int startIndex, boolean deep) voidappendMatchingValues(Set answer, String[] paths, int idx) voidappendMatchingWildcards(Set answer, String[] paths, int idx) Matches any entries in the map containing wildcardsprotected DestinationMapNodeFactory method to create a child nodeReturns the child node for the given named path or null if it does not existintgetChildOrCreate(String path) Returns the child node for the given named path, lazily creating one if it does not yet existReturns the child nodesReturns a list of all the values from this node down the treegetPath()Returns a mutable List of the values available at this node in the treebooleanisEmpty()protected voidvoidvoidremoveAll(Set<DestinationNode> answer, String[] paths, int startIndex) protected voidprotected voidremoveDesendentValues(Set answer) Removes values available at this node in the treevoid
-
Field Details
-
ANY_CHILD
- See Also:
-
ANY_DESCENDENT
- See Also:
-
-
Constructor Details
-
DestinationMapNode
-
-
Method Details
-
getChild
Returns the child node for the given named path or null if it does not exist- Specified by:
getChildin interfaceDestinationNode
-
getChildren
Returns the child nodes- Specified by:
getChildrenin interfaceDestinationNode
-
getChildCount
public int getChildCount() -
getChildOrCreate
Returns the child node for the given named path, lazily creating one if it does not yet exist -
getValues
Returns a mutable List of the values available at this node in the tree- Specified by:
getValuesin interfaceDestinationNode
-
removeValues
Removes values available at this node in the tree- Specified by:
removeValuesin interfaceDestinationNode
-
removeDesendentValues
- Specified by:
removeDesendentValuesin interfaceDestinationNode
-
removeDesendentValues
-
getDesendentValues
Returns a list of all the values from this node down the tree- Specified by:
getDesendentValuesin interfaceDestinationNode
-
add
-
set
-
remove
-
removeAll
-
appendDescendantValues
- Specified by:
appendDescendantValuesin interfaceDestinationNode
-
createChildNode
Factory method to create a child node -
appendMatchingWildcards
Matches any entries in the map containing wildcards- Specified by:
appendMatchingWildcardsin interfaceDestinationNode
-
appendMatchingValues
- Specified by:
appendMatchingValuesin interfaceDestinationNode
-
appendMatchingValues
public void appendMatchingValues(Set<DestinationNode> answer, String[] paths, int startIndex, boolean deep) -
getPath
-
isEmpty
public boolean isEmpty() -
pruneIfEmpty
protected void pruneIfEmpty() -
removeChild
-