Package cdc.issues.impl
Class ProfileImpl
- java.lang.Object
-
- cdc.issues.impl.ProfileImpl
-
-
Constructor Summary
Constructors Constructor Description ProfileImpl(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileImpladd(Rule rule)Adds a rule with no parameters, and enables it.ProfileImpladd(Rule rule, Params params)Adds a rule with parameters and enable it.booleancontains(Rule rule)Set<ConfiguredRule>getConfiguredRules()StringgetDescription()Set<ConfiguredRule>getEnabledConfiguredRules()Set<Rule>getEnabledRules()ParamsgetMetas()StringgetName()ParamsgetParams(Rule rule)Set<Rule>getRules()booleanisEnabled(Rule rule)ProfileImplremove(Rule rule)Removes a rule.ProfileImplsetDescription(String description)ProfileImplsetEnabled(Rule rule, boolean enabled)Enables or disables a rule.ProfileImplsetMetas(Params metas)ProfileImplsetName(String name)
-
-
-
Constructor Detail
-
ProfileImpl
public ProfileImpl(String name)
-
-
Method Detail
-
setName
public ProfileImpl setName(String name)
-
setDescription
public ProfileImpl setDescription(String description)
-
setMetas
public ProfileImpl setMetas(Params metas)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceProfile
-
add
public ProfileImpl add(Rule rule, Params params)
Adds a rule with parameters and enable it.- Parameters:
rule- The rule.params- The parameters.- Returns:
- This object.
-
add
public ProfileImpl add(Rule rule)
Adds a rule with no parameters, and enables it.- Parameters:
rule- The rule.- Returns:
- This object.
-
remove
public ProfileImpl remove(Rule rule)
Removes a rule.- Parameters:
rule- The rule.- Returns:
- This object.
-
setEnabled
public ProfileImpl setEnabled(Rule rule, boolean enabled)
Enables or disables a rule.If the rule is not declared, declares it.
- Parameters:
rule- The rule.enabled-trueif the rule must be enabled.- Returns:
- This object.
-
getConfiguredRules
public Set<ConfiguredRule> getConfiguredRules()
- Specified by:
getConfiguredRulesin interfaceProfile
-
getEnabledRules
public Set<Rule> getEnabledRules()
- Specified by:
getEnabledRulesin interfaceProfile
-
getEnabledConfiguredRules
public Set<ConfiguredRule> getEnabledConfiguredRules()
- Specified by:
getEnabledConfiguredRulesin interfaceProfile
-
contains
public boolean contains(Rule rule)
-
-