Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.filter
Class DestinationMapNode  view DestinationMapNode download DestinationMapNode.java

java.lang.Object
  extended byorg.activemq.filter.DestinationMapNode

public class DestinationMapNode
extends java.lang.Object

An implementation class used to implement DestinationMap

Version:
$Revision: 1.1.1.1 $

Field Summary
protected static java.lang.String ANY_CHILD
           
protected static java.lang.String ANY_DESCENDENT
           
private  DestinationMapNode anyChild
           
private  java.util.Map childNodes
           
private  java.util.List values
           
 
Constructor Summary
DestinationMapNode()
           
 
Method Summary
 void add(java.lang.String[] paths, int idx, java.lang.Object value)
           
protected  void appendDescendantValues(java.util.Set answer)
           
 void appendMatchingValues(java.util.Set answer, java.lang.String[] paths, int startIndex)
           
 void appendMatchingWildcards(java.util.Set answer, java.lang.String[] paths, int idx)
           
protected  DestinationMapNode createChildNode()
          Factory method to create a child node
 DestinationMapNode getAnyChildNode()
          Returns the node which represents all children (i.e.
 DestinationMapNode getChild(java.lang.String path)
          Returns the child node for the given named path or null if it does not exist
 DestinationMapNode getChildOrCreate(java.lang.String path)
          Returns the child node for the given named path, lazily creating one if it does not yet exist
 java.util.Set getDesendentValues()
          Returns a list of all the values from this node down the tree
 java.util.List getValues()
          Returns a mutable List of the values available at this node in the tree
 void remove(java.lang.String[] paths, int idx, java.lang.Object value)
           
 void removeAll(java.lang.String[] paths, int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

private java.util.List values

childNodes

private java.util.Map childNodes

anyChild

private DestinationMapNode anyChild

ANY_CHILD

protected static final java.lang.String ANY_CHILD
See Also:
Constant Field Values

ANY_DESCENDENT

protected static final java.lang.String ANY_DESCENDENT
See Also:
Constant Field Values
Constructor Detail

DestinationMapNode

public DestinationMapNode()
Method Detail

getChild

public DestinationMapNode getChild(java.lang.String path)
Returns the child node for the given named path or null if it does not exist


getChildOrCreate

public DestinationMapNode getChildOrCreate(java.lang.String path)
Returns the child node for the given named path, lazily creating one if it does not yet exist


getAnyChildNode

public DestinationMapNode getAnyChildNode()
Returns the node which represents all children (i.e. the * node)


getValues

public java.util.List getValues()
Returns a mutable List of the values available at this node in the tree


getDesendentValues

public java.util.Set getDesendentValues()
Returns a list of all the values from this node down the tree


add

public void add(java.lang.String[] paths,
                int idx,
                java.lang.Object value)

remove

public void remove(java.lang.String[] paths,
                   int idx,
                   java.lang.Object value)

removeAll

public void removeAll(java.lang.String[] paths,
                      int idx)

appendDescendantValues

protected void appendDescendantValues(java.util.Set answer)

createChildNode

protected DestinationMapNode createChildNode()
Factory method to create a child node


appendMatchingWildcards

public void appendMatchingWildcards(java.util.Set answer,
                                    java.lang.String[] paths,
                                    int idx)

appendMatchingValues

public void appendMatchingValues(java.util.Set answer,
                                 java.lang.String[] paths,
                                 int startIndex)