com.ibm.websphere.brb.query
Class ClassifierNode

java.lang.Object
  extended bycom.ibm.websphere.brb.query.QueryNode
      extended bycom.ibm.websphere.brb.query.AttributeNode
          extended bycom.ibm.websphere.brb.query.ClassifierNode
All Implemented Interfaces:
java.io.Serializable

public class ClassifierNode
extends AttributeNode

Allows the classifier attribute of a rule to be queried. A ClassifierNode is given a boolean that indicates whether to search for rules that classify (true) or to search for rules that do not classify (false). The following example finds all rules that classify true:

    IRuleFolder root = RuleMgmtHelper.getRootFolder();
    ClassifierNode node = new ClassifierNode(true);
    Collection collection = root.findRules(node, true, IRule.TYPE_REFERENCE);
 
These nodes can be combined with other QueryNodes by using an AndNode or an OrNode.

See Also:
Serialized Form

Constructor Summary
ClassifierNode(boolean classifyIn)
          Constructs a ClassifierNode that searches the classifier field either for rules that classify (true) or for rules that do not classify (false)
 
Method Summary
 void buildWhereClause(java.lang.StringBuffer sb, java.util.Vector boundAttributes)
          FOR IBM INTERNAL USE ONLY.
 
Methods inherited from class com.ibm.websphere.brb.query.QueryNode
getWhereClause, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassifierNode

public ClassifierNode(boolean classifyIn)
Constructs a ClassifierNode that searches the classifier field either for rules that classify (true) or for rules that do not classify (false)

Parameters:
classifyIn - indicates whether to find rules that classify or find rules that do not classify
Method Detail

buildWhereClause

public void buildWhereClause(java.lang.StringBuffer sb,
                             java.util.Vector boundAttributes)
FOR IBM INTERNAL USE ONLY.