made the destination map easier to navigate

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@389019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-03-27 04:33:40 +00:00
parent d84e0521ea
commit 694120cd29
2 changed files with 17 additions and 0 deletions

View File

@ -113,6 +113,15 @@ public class DestinationMap {
return queueRootNode.getChildCount();
}
public DestinationMapNode getQueueRootNode() {
return queueRootNode;
}
public DestinationMapNode getTopicRootNode() {
return topicRootNode;
}
// Implementation methods
// -------------------------------------------------------------------------

View File

@ -17,6 +17,7 @@
package org.apache.activemq.filter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@ -50,6 +51,13 @@ public class DestinationMapNode {
return (DestinationMapNode) childNodes.get(path);
}
/**
* Returns the child nodes
*/
public Collection getChildren() {
return childNodes.values();
}
public int getChildCount() {
return childNodes.size();
}