Class DefaultActiveRules

  • All Implemented Interfaces:
    ActiveRules

    @Immutable
    public class DefaultActiveRules
    extends java.lang.Object
    implements ActiveRules
    • Constructor Detail

      • DefaultActiveRules

        public DefaultActiveRules​(java.util.Collection<NewActiveRule> newActiveRules)
    • Method Detail

      • find

        public ActiveRule find​(RuleKey ruleKey)
        Description copied from interface: ActiveRules
        Find a ActiveRule by the associated rule key. null is returned if the rule does not exist or if the rule is not activated on any Quality profile associated with the project.
        Specified by:
        find in interface ActiveRules
      • findAll

        public java.util.Collection<ActiveRule> findAll()
        Description copied from interface: ActiveRules
        All the active rules, whatever their repository and related language.
        Specified by:
        findAll in interface ActiveRules
      • findByRepository

        public java.util.Collection<ActiveRule> findByRepository​(java.lang.String repository)
        Description copied from interface: ActiveRules
        The active rules for a given repository, like findbugs
        Specified by:
        findByRepository in interface ActiveRules
      • findByLanguage

        public java.util.Collection<ActiveRule> findByLanguage​(java.lang.String language)
        Description copied from interface: ActiveRules
        The active rules for a given language, like java
        Specified by:
        findByLanguage in interface ActiveRules
      • findByInternalKey

        public ActiveRule findByInternalKey​(java.lang.String repository,
                                            java.lang.String internalKey)
        Description copied from interface: ActiveRules
        Find a ActiveRule by the associated internal key. null is returned if the rule does not exist or if the rule is not activated on any Quality profile associated with the project.
        Specified by:
        findByInternalKey in interface ActiveRules