Package cdc.issues.impl
Class ProfileImpl
java.lang.Object
cdc.issues.impl.ProfileImpl
- All Implemented Interfaces:
Profile
Default implementation of
Profile.- Author:
- Damien Carbonne
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfileImpl(ProfileImpl.Builder builder) ProfileImpl(String name) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.addIfMissing(Rule rule) Deprecated, for removal: This API element is subject to removal in a future version.apply(ProfileConfig profileConfig) static ProfileImpl.Builderbuilder()getConfiguredRule(Rule rule) getMetas()getName()getRules()booleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.setAllEnabled(boolean enabled) setConfig(RuleId ruleId, RuleConfig config) setConfig(Rule rule, RuleConfig config) setCustomizedSeverity(RuleId ruleId, IssueSeverity customizedSeverity) setCustomizedSeverity(Rule rule, IssueSeverity customizedSeverity) setDescription(String description) Deprecated, for removal: This API element is subject to removal in a future version.setEnabled(RuleId ruleId, boolean enabled) setEnabled(Rule rule, boolean enabled) Enables or disables a rule.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cdc.issues.rules.Profile
getCustomizedSeverity, getEffectiveSeverity, getEnabledRules, getParams, getRuleConfig, isEnabled
-
Constructor Details
-
ProfileImpl
-
ProfileImpl
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setName
Deprecated, for removal: This API element is subject to removal in a future version. -
setDescription
@Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl setDescription(String description) Deprecated, for removal: This API element is subject to removal in a future version. -
setMetas
Deprecated, for removal: This API element is subject to removal in a future version. -
setMetas
Deprecated, for removal: This API element is subject to removal in a future version. -
setLabels
Deprecated, for removal: This API element is subject to removal in a future version. -
getName
-
getDescription
- Specified by:
getDescriptionin interfaceProfile
-
getMetas
-
getLabels
-
getRule
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Adds a rule if it is not already added.- Parameters:
rule- The rule.- Returns:
- This profile.
- Throws:
IllegalArgumentException- Whenruleisnullor another rule with same id is already registered.
-
addIfMissing
Deprecated, for removal: This API element is subject to removal in a future version.Adds a rule if it is not already added.- Parameters:
rule- The rule.- Returns:
- This profile.
- Throws:
IllegalArgumentException- Whenruleisnull.
-
setConfig
-
setConfig
-
remove
Deprecated, for removal: This API element is subject to removal in a future version.Removes a rule.- Parameters:
rule- The rule.- Returns:
- This object.
-
setAllEnabled
-
setEnabled
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.
-
setEnabled
-
setCustomizedSeverity
-
setCustomizedSeverity
-
setParams
-
setParams
-
apply
-
getRules
-
hasRule
-
getProfileConfig
- Specified by:
getProfileConfigin interfaceProfile
-
hasRule
-
getConfiguredRule
- Specified by:
getConfiguredRulein interfaceProfile
-
builder
-