public class RequireProperty extends AbstractNonCacheableEnforcerRule
Modifier and Type | Field and Description |
---|---|
String |
property
Specify the required property.
|
String |
regex
Match the property value to a given regular expression.
|
String |
regexMessage
Specify a warning message if the regular expression is not matched.
|
message
Constructor and Description |
---|
RequireProperty() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
Execute the rule.
|
getCacheId, isCacheable, isResultValid
public String property
public String regex
null
(any value is ok).public String regexMessage
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
helper
- the helperEnforcerRuleException
- the enforcer rule exceptionCopyright © 2007-2012 Apache Software Foundation. All Rights Reserved.