public class AliasesShouldFollowStandardConventionRuleParametersFactory extends AbstractRuleParametersFactory<AliasesShouldFollowStandardConvention>
AbstractRuleParametersFactory for the AliasesShouldFollowStandardConventionRule.| Constructor and Description |
|---|
AliasesShouldFollowStandardConventionRuleParametersFactory(BuiltInRules mojoParameters)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
getActivatedParameter(AliasesShouldFollowStandardConvention pojoParameters)
Extracts and returns the value of the
isActivated parameter from a POJO in the BuiltInRules POJO. |
protected AliasesShouldFollowStandardConvention |
getPojoFromBuiltInRules(BuiltInRules mojoParameters)
Retrieves the rule configuration POJO from the
BuiltInRules POJO. |
protected Set<String> |
getRuleParametersKeys()
Returns the parameters names for the current
AbstractLintingRule. |
protected Optional<String> |
getValueForParameter(String key,
AliasesShouldFollowStandardConvention pojoParameters)
Extracts and returns the value of the given parameter
key from a POJO in the BuiltInRules POJO. |
getRuleParameters, isActivatedpublic AliasesShouldFollowStandardConventionRuleParametersFactory(BuiltInRules mojoParameters)
mojoParameters - the PJO that contains the pom.xml configuration.protected boolean getActivatedParameter(AliasesShouldFollowStandardConvention pojoParameters)
isActivated parameter from a POJO in the BuiltInRules POJO.getActivatedParameter in class AbstractRuleParametersFactory<AliasesShouldFollowStandardConvention>pojoParameters - the POJO that holds the pom.xml plugin configuration.isActivated parameter.protected AliasesShouldFollowStandardConvention getPojoFromBuiltInRules(BuiltInRules mojoParameters)
BuiltInRules POJO.getPojoFromBuiltInRules in class AbstractRuleParametersFactory<AliasesShouldFollowStandardConvention>mojoParameters - the POJO that hosts the rule configuration object.protected Set<String> getRuleParametersKeys()
AbstractLintingRule.getRuleParametersKeys in class AbstractRuleParametersFactory<AliasesShouldFollowStandardConvention>protected Optional<String> getValueForParameter(String key, AliasesShouldFollowStandardConvention pojoParameters)
key from a POJO in the BuiltInRules POJO.getValueForParameter in class AbstractRuleParametersFactory<AliasesShouldFollowStandardConvention>key - the name of the parameter to retrieves the value from.pojoParameters - the POJO that holds the pom.xml plugin configuration.key parameter.Copyright © 2020. All rights reserved.