com.ibm.websphere.brb.query
Class JavaRuleImplementorNameNode

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

public class JavaRuleImplementorNameNode
extends AbstractStringNode

Allows the javaRuleImplementorName attribute of a rule to be queried. A JavaRuleImplementorNameNode is given a string for which to search and a constant describing the comparison operation to perform. These constants are defined in superclass AbstractStringNode. The following example finds all rules with a Java RuleImplementor of "com.ibm.websphere.brb.implementor.RuleGreaterThan":

    IRuleFolder root = RuleMgmtHelper.getRootFolder();
    String ruleImplementorName = "com.ibm.websphere.brb.implementor.RuleGreaterThan";
    JavaRuleImplementorNameNode node = new JavaRuleImplementorNameNode(ruleImplementorName, AbstractStringNode.EQUAL);
    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

Field Summary
 
Fields inherited from class com.ibm.websphere.brb.query.AbstractStringNode
EQUAL, IS_NOT_NULL, IS_NULL, LIKE, NOT_EQUAL
 
Constructor Summary
JavaRuleImplementorNameNode(java.lang.String searchText, int comparisonOp)
          Constructs a JavaRuleImplementorNode that searches the javaRuleImplementor field for text matching searchText with the given string comparison operator.
 
Methods inherited from class com.ibm.websphere.brb.query.AbstractStringNode
buildWhereClause
 
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

JavaRuleImplementorNameNode

public JavaRuleImplementorNameNode(java.lang.String searchText,
                                   int comparisonOp)
Constructs a JavaRuleImplementorNode that searches the javaRuleImplementor field for text matching searchText with the given string comparison operator. Unless the operator is IS_NULL or IS_NOT_NULL, the searchText must be non-null. A java.lang.IllegalArgumentException is thrown if this condition is not met.

Parameters:
searchText - The text for which to search.
comparisonOp - The type of operation to perform.
Throws:
java.lang.IllegalArgumentException - if the searchText or comparisonOp is invalid