protected void collectRules(RuleNode root, Vector vrules) {
Hashtable childrens = root.getChildren();
if (childrens != null) {
Enumeration childenum = childrens.keys();
while (childenum.hasMoreElements()) {
RuleNode rnode =
(RuleNode) childrens.get((String) childenum.nextElement());
Rule rule = rnode.getRule();
if (rule != null)
vrules.addElement(rule);
collectRules(rnode, vrules);
}
}