public abstract class AbstractPropertyEnforcerRule extends AbstractNonCacheableEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
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 |
|---|
AbstractPropertyEnforcerRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(EnforcerRuleHelper helper)
Execute the rule.
|
abstract String |
getName()
How the property that is being evaluated is called
|
abstract String |
getPropertyName()
The name of the property currently being evaluated, this is used for default message pourpouses only
|
abstract Object |
resolveValue(EnforcerRuleHelper helper)
Resolves the property value
|
getCacheId, isCacheable, isResultValidpublic String regex
null (any value is ok).public String regexMessage
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
helper - the helperEnforcerRuleException - the enforcer rule exceptionpublic abstract String getName()
public abstract String getPropertyName()
public abstract Object resolveValue(EnforcerRuleHelper helper) throws EnforcerRuleException
helper - EnforcerRuleExceptionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.