public enum BuiltInLintingRulesFactory extends Enum<BuiltInLintingRulesFactory>
AbstractLintingRule classes to their AbstractRuleParametersFactory and their name.| Enum Constant and Description |
|---|
ALIASES_SHOULD_BE_LISTED_IN_DICTIONARY
The
AliasesShouldBeListedInDictionaryRule mapping. |
ALIASES_SHOULD_BE_UNIQUE
The
AliasesShouldBeUniqueRule mapping. |
ALIASES_SHOULD_FOLLOW_STANDARD_CONVENTION
The
AliasesShouldFollowStandardConventionRule mapping. |
NO_DUPLICATES_IN_RELATIONSHIPS
The
NoDuplicateRelationshipsRule mapping. |
NO_ORPHAN_ALIAS_IN_BOUNDARIES
The
NoOrphanAliasInBoundariesRule mapping. |
NO_ORPHAN_ALIAS_IN_LAYOUTS
The
NoOrphanAliasInLayoutsRule mapping. |
NO_ORPHAN_ALIAS_IN_RELATIONSHIPS
The
NoOrphanAliasInRelationshipsRule mapping. |
| Modifier and Type | Method and Description |
|---|---|
static Optional<AbstractLintingRule> |
createInstanceForName(String ruleName,
BuiltInRules parameters)
Builds a
AbstractLintingRule instance, given its name and the BuiltInRules parameters POJO. |
String |
getRuleName()
Returns the name of the current mapping.
|
static Optional<String> |
getRuleNameForType(Class<? extends AbstractLintingRule> ruleType)
Returns the mapped name of a
AbstractLintingRule, given its type. |
Class<? extends AbstractLintingRule> |
getRuleType()
Returns the
AbstractLintingRule type of the current mapping. |
static boolean |
isBuiltInLintingRule(Class<? extends AbstractLintingRule> lintingRuleType)
Tells whether or not the given
AbstractLintingRule is a built-in rule, or a custom one, which requires
a different building process. |
static BuiltInLintingRulesFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInLintingRulesFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltInLintingRulesFactory ALIASES_SHOULD_BE_LISTED_IN_DICTIONARY
AliasesShouldBeListedInDictionaryRule mapping.public static final BuiltInLintingRulesFactory ALIASES_SHOULD_BE_UNIQUE
AliasesShouldBeUniqueRule mapping.public static final BuiltInLintingRulesFactory ALIASES_SHOULD_FOLLOW_STANDARD_CONVENTION
AliasesShouldFollowStandardConventionRule mapping.public static final BuiltInLintingRulesFactory NO_DUPLICATES_IN_RELATIONSHIPS
NoDuplicateRelationshipsRule mapping.public static final BuiltInLintingRulesFactory NO_ORPHAN_ALIAS_IN_BOUNDARIES
NoOrphanAliasInBoundariesRule mapping.public static final BuiltInLintingRulesFactory NO_ORPHAN_ALIAS_IN_LAYOUTS
NoOrphanAliasInLayoutsRule mapping.public static final BuiltInLintingRulesFactory NO_ORPHAN_ALIAS_IN_RELATIONSHIPS
NoOrphanAliasInRelationshipsRule mapping.public static BuiltInLintingRulesFactory[] values()
for (BuiltInLintingRulesFactory c : BuiltInLintingRulesFactory.values()) System.out.println(c);
public static BuiltInLintingRulesFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Optional<AbstractLintingRule> createInstanceForName(String ruleName, BuiltInRules parameters)
AbstractLintingRule instance, given its name and the BuiltInRules parameters POJO.ruleName - the name of the rule to build.parameters - the pom.xml configuration.Optional of the built rule on success, or empty else.public static Optional<String> getRuleNameForType(Class<? extends AbstractLintingRule> ruleType)
AbstractLintingRule, given its type.ruleType - the type of the rule to retrieve the name from.Optional of the name of the rule if found, empty else.public static boolean isBuiltInLintingRule(Class<? extends AbstractLintingRule> lintingRuleType)
AbstractLintingRule is a built-in rule, or a custom one, which requires
a different building process.lintingRuleType - the type of the rule to check for.true if the rule is a built-in one, false else.public String getRuleName()
public Class<? extends AbstractLintingRule> getRuleType()
AbstractLintingRule type of the current mapping.Copyright © 2020. All rights reserved.