Class ProfileImpl

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

class ProfileImpl extends Object implements Profile
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Profile
      Returns:
      The profile name.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Profile
      Returns:
      The profile description.
    • getMetas

      public Metas getMetas()
      Specified by:
      getMetas in interface MetasItem
      Returns:
      The metas associated to this item.
    • getLabels

      public Labels getLabels()
      Specified by:
      getLabels in interface LabelsItem
      Returns:
      The labels associated to this item.
    • getRule

      public Optional<Rule> getRule(RuleId ruleId)
      Specified by:
      getRule in interface Profile
      Parameters:
      ruleId - The rule id.
      Returns:
      The rule with ruleId.
    • getRules

      public Set<Rule> getRules()
      Specified by:
      getRules in interface Profile
      Returns:
      The set of rules in this profile.
    • hasRule

      public boolean hasRule(Rule rule)
      Specified by:
      hasRule in interface Profile
    • getProfileConfig

      public ProfileConfig getProfileConfig()
      Specified by:
      getProfileConfig in interface Profile
    • hasRule

      public boolean hasRule(RuleId ruleId)
      Specified by:
      hasRule in interface Profile
      Parameters:
      ruleId - The rule id.
      Returns:
      true if a rule with ruleId exists in this profile.
    • getConfiguredRule

      public ConfiguredRule getConfiguredRule(Rule rule)
      Specified by:
      getConfiguredRule in interface Profile
      Parameters:
      rule - The rule.
      Returns:
      The configured rule corresponding to rule.