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 purposes 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, setRegexMessagegetLevel, getMessage, setLevel, setMessagepublic RequireEnvironmentVariable()
public final void setVariableName(String variableName)
variableName - the variable namesetVariableName(String),
getVariableName()public final String getVariableName()
public String resolveValue(EnforcerRuleHelper helper)
AbstractPropertyEnforcerRuleresolveValue in class AbstractPropertyEnforcerRulepublic boolean isCacheable()
isCacheable in interface EnforcerRuleisCacheable in class AbstractNonCacheableEnforcerRulepublic boolean isResultValid(EnforcerRule cachedRule)
isResultValid in interface EnforcerRuleisResultValid in class AbstractNonCacheableEnforcerRulepublic String getCacheId()
getCacheId in interface EnforcerRulegetCacheId in class AbstractNonCacheableEnforcerRulepublic String getPropertyName()
AbstractPropertyEnforcerRulegetPropertyName in class AbstractPropertyEnforcerRulepublic String getName()
AbstractPropertyEnforcerRulegetName in class AbstractPropertyEnforcerRuleCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.