public class RequireEnvironmentVariable extends AbstractPropertyEnforcerRule
| Modifier and Type | Field and Description |
|---|---|
String |
variableName
Specify the required variable.
|
regex, regexMessagemessage| 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(org.apache.maven.enforcer.rule.api.EnforcerRule cachedRule) |
String |
resolveValue(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
Resolves the property value
|
void |
setVariableName(String variableName)
Deprecated.
the visibility will be reduced to private with the next major version
|
execute, getRegex, getRegexMessage, setRegex, setRegexMessagegetMessage, setMessagepublic String variableName
public final void setVariableName(String variableName)
variableName - the variable name#setVariableName(String)},
#getVariableName()}public final String getVariableName()
public String resolveValue(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
AbstractPropertyEnforcerRuleresolveValue in class AbstractPropertyEnforcerRulepublic boolean isCacheable()
isCacheable in interface org.apache.maven.enforcer.rule.api.EnforcerRuleisCacheable in class AbstractNonCacheableEnforcerRulepublic boolean isResultValid(org.apache.maven.enforcer.rule.api.EnforcerRule cachedRule)
isResultValid in interface org.apache.maven.enforcer.rule.api.EnforcerRuleisResultValid in class AbstractNonCacheableEnforcerRulepublic String getCacheId()
getCacheId in interface org.apache.maven.enforcer.rule.api.EnforcerRulegetCacheId in class AbstractNonCacheableEnforcerRulepublic String getPropertyName()
AbstractPropertyEnforcerRulegetPropertyName in class AbstractPropertyEnforcerRulepublic String getName()
AbstractPropertyEnforcerRulegetName in class AbstractPropertyEnforcerRuleCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.