public class RequireProperty extends AbstractPropertyEnforcerRule
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
|
void |
setProperty(String property) |
execute, getRegex, getRegexMessage, setRegex, setRegexMessage
getCacheId, isCacheable, isResultValid
getLevel, getMessage, setLevel, setMessage
public RequireProperty()
public final void setProperty(String property)
public Object resolveValue(EnforcerRuleHelper helper) throws EnforcerRuleException
AbstractPropertyEnforcerRule
resolveValue
in class AbstractPropertyEnforcerRule
EnforcerRuleException
protected String resolveValue()
public String getPropertyName()
AbstractPropertyEnforcerRule
getPropertyName
in class AbstractPropertyEnforcerRule
public String getName()
AbstractPropertyEnforcerRule
getName
in class AbstractPropertyEnforcerRule
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.