public class RequireProperty extends AbstractPropertyEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
String |
property
Specify the required property.
|
regex, regexMessagemessage| Constructor and Description |
|---|
RequireProperty() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
How the property that is being evaluated is called
|
String |
getPropertyName()
The name of the property currently being evaluated, this is used for default message pourpouses only
|
protected String |
resolveValue() |
Object |
resolveValue(EnforcerRuleHelper helper)
Resolves the property value
|
executegetCacheId, isCacheable, isResultValidpublic String property
public Object resolveValue(EnforcerRuleHelper helper) throws EnforcerRuleException
AbstractPropertyEnforcerRuleresolveValue in class AbstractPropertyEnforcerRuleEnforcerRuleExceptionprotected String resolveValue()
public String getPropertyName()
AbstractPropertyEnforcerRulegetPropertyName in class AbstractPropertyEnforcerRulepublic String getName()
AbstractPropertyEnforcerRulegetName in class AbstractPropertyEnforcerRuleCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.