public class Contains extends ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.LogicalRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule| Constructor and Description |
|---|
Contains(String propertyName,
boolean ignoreCase,
String a)
Define an equality comparison between the string value of a property and another string value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(PropertiesCollection info)
Determines whether this policy accepts the specified node.
|
String |
toString()
Print this object to a string.
|
and, getProperty, not, or, xorpublic Contains(String propertyName, boolean ignoreCase, String a)
propertyName - the name of the property to compare.ignoreCase - determines if the comparison should ignore the string case.a - the value to compare with.public boolean accepts(PropertiesCollection info)
accepts in class ExecutionPolicyinfo - system information for the node on which the tasks will run if accepted.Copyright © 2005-2012 JPPF Team.