public class RegExp extends ExecutionPolicy
Pattern.
The test applies to string values only.ExecutionPolicy.AndRule, ExecutionPolicy.LogicalRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule| Constructor and Description |
|---|
RegExp(String propertyName,
String regExp)
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 RegExp(String propertyName, String regExp) throws PatternSyntaxException
propertyName - the name of the property to compare.regExp - a regular expression to match the property value against.PatternSyntaxException - if the syntax of expression is invalidpublic 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.