com.ibm.websphere.brb.query
Class PrecedenceNode
java.lang.Object
com.ibm.websphere.brb.query.QueryNode
com.ibm.websphere.brb.query.AttributeNode
com.ibm.websphere.brb.query.AbstractIntegerNode
com.ibm.websphere.brb.query.PrecedenceNode
- All Implemented Interfaces:
- java.io.Serializable
- public class PrecedenceNode
- extends AbstractIntegerNode
Allows the precedence
attribute of a rule to be queried. A
PrecedenceNode
is given a integer for which to search and a
constant describing the comparison operation to perform. These constants
are defined in superclass AbstractIntegerNode
. The following example
finds all rules with a precedence less than or equal to 2:
IRuleFolder root = RuleMgmtHelper.getRootFolder();
PrecedenceNode node = new PrecedenceNode(2, AbstractIntegerNode.LESS_THAN_EQUAL);
Collection collection = root.findRules(node, true, IRule.TYPE_REFERENCE);
These nodes can be combined with other QueryNode
s by using an AndNode
or
an OrNode
.
- See Also:
- Serialized Form
Constructor Summary |
PrecedenceNode(int searchIntIn,
int comparisonOpIn)
Constructs a PrecedenceNode that will search for rules with a precedence
matching searchIntIn with the given comparison operator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PrecedenceNode
public PrecedenceNode(int searchIntIn,
int comparisonOpIn)
- Constructs a PrecedenceNode that will search for rules with a precedence
matching
searchIntIn
with the given comparison operator.
- Parameters:
searchIntIn
- The integer for which to search.comparisonOpIn
- The type of operation to perform. See the constants defined in this class.
- Throws:
java.lang.IllegalArgumentException
- if the comparisonOpIn
is invalid