public class RequireProperty extends AbstractPropertyEnforcerRule
Modifier and Type | Field and Description |
---|---|
String |
property
Deprecated.
the visibility will be reduced to private with the next major version
|
regex, regexMessage
message
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
getMessage, setMessage
public String property
#setProperty(String)}
,
#getPropertyName()}
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–2014 The Apache Software Foundation. All rights reserved.