Class ProfileImpl

java.lang.Object
cdc.issues.impl.ProfileImpl
All Implemented Interfaces:
LabelsItem, MetasItem, Profile

@Deprecated(since="2025-03-25", forRemoval=true) public class ProfileImpl extends Object implements Profile
Deprecated, for removal: This API element is subject to removal in a future version.
Default implementation of Profile.
Author:
Damien Carbonne
  • Constructor Details

    • ProfileImpl

      protected ProfileImpl(ProfileImpl.Builder builder)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ProfileImpl

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • setName

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl setName(String name)
      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(since="2025-01-25", forRemoval=true) public ProfileImpl setMetas(Metas metas)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setLabels

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl setLabels(Labels labels)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface Profile
    • getDescription

      public String getDescription()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getDescription in interface Profile
    • getMetas

      public Metas getMetas()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getMetas in interface MetasItem
    • getLabels

      public Labels getLabels()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getLabels in interface LabelsItem
    • getRule

      public Optional<Rule> getRule(RuleId ruleId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getRule in interface Profile
    • add

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl add(Rule rule)
      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 - When rule is null or another rule with same id is already registered.
    • addIfMissing

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl addIfMissing(Rule rule)
      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 - When rule is null.
    • setConfig

      public ProfileImpl setConfig(Rule rule, RuleConfig config)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setConfig

      public ProfileImpl setConfig(RuleId ruleId, RuleConfig config)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • remove

      @Deprecated(since="2025-01-25", forRemoval=true) public ProfileImpl remove(Rule rule)
      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

      public ProfileImpl setAllEnabled(boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setEnabled

      public ProfileImpl setEnabled(Rule rule, boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables or disables a rule.

      If the rule is not declared, declares it.

      Parameters:
      rule - The rule.
      enabled - true if the rule must be enabled.
      Returns:
      This object.
    • setEnabled

      public ProfileImpl setEnabled(RuleId ruleId, boolean enabled)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCustomizedSeverity

      public ProfileImpl setCustomizedSeverity(Rule rule, IssueSeverity customizedSeverity)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCustomizedSeverity

      public ProfileImpl setCustomizedSeverity(RuleId ruleId, IssueSeverity customizedSeverity)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setParams

      public ProfileImpl setParams(Rule rule, Params params)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setParams

      public ProfileImpl setParams(RuleId ruleId, Params params)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • apply

      public ProfileImpl apply(ProfileConfig profileConfig)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getRules

      public Set<Rule> getRules()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getRules in interface Profile
    • hasRule

      public boolean hasRule(Rule rule)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasRule in interface Profile
    • getProfileConfig

      public ProfileConfig getProfileConfig()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getProfileConfig in interface Profile
    • hasRule

      public boolean hasRule(RuleId ruleId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasRule in interface Profile
    • getConfiguredRule

      public ConfiguredRule getConfiguredRule(Rule rule)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getConfiguredRule in interface Profile
    • builder

      @Deprecated(since="2025-03-25", forRemoval=true) public static ProfileImpl.Builder builder()
      Deprecated, for removal: This API element is subject to removal in a future version.