Package org.jppf.node.policy
Class NotEqual
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.Equal
org.jppf.node.policy.NotEqual
- All Implemented Interfaces:
Serializable
An execution policy rule that encapsulates a test of type
property_value_or_expression not_equal_to a.
The test applies to numeric, string or boolean values or expressions.- Author:
- Laurent Cohen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jppf.node.policy.ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule -
Field Summary
Fields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionDefine an inequality comparison between the boolean value of a property and another boolean value.Define an inequality comparison between the string value of a property and another string value.Define an inequality comparison between the numeric value of a property and another numeric value.Define an inequality comparison between the numeric value of a property and another numeric value.
Note that if the value type is equal toValueType.STRING, then the comparison will be case-insensitive. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determines whether this policy accepts the specified node.protected ObjectgetLeftOperandValue(PropertiesCollection<String> properties) Methods inherited from class org.jppf.node.policy.ExecutionPolicy
and, and, andNot, andNot, checkRules, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Constructor Details
-
NotEqual
Define an inequality comparison between the numeric value of a property and another numeric value.
Note that if the value type is equal toValueType.STRING, then the comparison will be case-insensitive. To specify case sensitivity, use the#Equal(String, boolean, String)constructor instead.- Parameters:
valueType- the type of value to which thie equality comparison applies.propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the value to compare with.
-
NotEqual
Define an inequality comparison between the numeric value of a property and another numeric value.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a numeric value.a- the value to compare with.
-
NotEqual
Define an inequality comparison between the string value of a property and another string value.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a string value.ignoreCase- determines if the comparison should ignore the string case.a- the value to compare with.
-
NotEqual
Define an inequality comparison between the boolean value of a property and another boolean value.- Parameters:
propertyNameOrExpression- either a literal string which represents a property name, or an expression resolving to a boolean value.a- the value to compare with.
-
-
Method Details
-
accepts
Description copied from class:EqualDetermines whether this policy accepts the specified node. -
getLeftOperandValue
- Parameters:
properties- the proeprties collection to evaluate against.- Returns:
- the typed value of the left operand expression.
-