public class RequireEnvironmentVariable extends AbstractPropertyEnforcerRule
Constructor and Description |
---|
RequireEnvironmentVariable() |
Modifier and Type | Method and Description |
---|---|
String |
getCacheId() |
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
|
String |
getVariableName() |
boolean |
isCacheable() |
boolean |
isResultValid(EnforcerRule cachedRule) |
String |
resolveValue(EnforcerRuleHelper helper)
Resolves the property value
|
void |
setVariableName(String variableName) |
execute, getRegex, getRegexMessage, setRegex, setRegexMessage
getLevel, getMessage, setLevel, setMessage
public RequireEnvironmentVariable()
public final void setVariableName(String variableName)
variableName
- the variable namesetVariableName(String)
,
getVariableName()
public final String getVariableName()
public String resolveValue(EnforcerRuleHelper helper)
AbstractPropertyEnforcerRule
resolveValue
in class AbstractPropertyEnforcerRule
public boolean isCacheable()
isCacheable
in interface EnforcerRule
isCacheable
in class AbstractNonCacheableEnforcerRule
public boolean isResultValid(EnforcerRule cachedRule)
isResultValid
in interface EnforcerRule
isResultValid
in class AbstractNonCacheableEnforcerRule
public String getCacheId()
getCacheId
in interface EnforcerRule
getCacheId
in class AbstractNonCacheableEnforcerRule
public String getPropertyName()
AbstractPropertyEnforcerRule
getPropertyName
in class AbstractPropertyEnforcerRule
public String getName()
AbstractPropertyEnforcerRule
getName
in class AbstractPropertyEnforcerRule
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.