Class RequireProperty
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRuleBase
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.property.AbstractPropertyEnforcerRule
org.apache.maven.enforcer.rules.property.RequireProperty
- All Implemented Interfaces:
EnforcerRuleBase
This rule checks that certain properties are set.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExpressionEvaluatorprivate StringSpecify the required property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()How the property that is being evaluated is calledThe name of the property currently being evaluated, this is used for default message purposes onlyResolves the property valuevoidsetProperty(String property) toString()Methods inherited from class AbstractPropertyEnforcerRule
execute, getRegex, getRegexMessage, setRegex, setRegexMessageMethods inherited from class AbstractStandardEnforcerRule
formatLocation, getMessage, setMessageMethods inherited from class AbstractEnforcerRule
getCacheId, getLevel, getRuleNameMethods inherited from class AbstractEnforcerRuleBase
getLog, setLog
-
Field Details
-
property
Specify the required property. -
evaluator
-
-
Constructor Details
-
RequireProperty
-
-
Method Details
-
setProperty
-
resolveValue
Description copied from class:AbstractPropertyEnforcerRuleResolves the property value- Specified by:
resolveValuein classAbstractPropertyEnforcerRule- Returns:
- a resolve value
- Throws:
EnforcerRuleException- in case of problems
-
getPropertyName
Description copied from class:AbstractPropertyEnforcerRuleThe name of the property currently being evaluated, this is used for default message purposes only- Specified by:
getPropertyNamein classAbstractPropertyEnforcerRule- Returns:
- the name of the property
-
getName
Description copied from class:AbstractPropertyEnforcerRuleHow the property that is being evaluated is called- Specified by:
getNamein classAbstractPropertyEnforcerRule- Returns:
- kind of property
-
toString
-