java.lang.Object
edu.hm.hafner.analysis.parser.fxcop.FxCopRuleSet

public class FxCopRuleSet extends Object
Internal set containing rules for FxCop.
Autor:
Erik Ramfelt
  • Konstruktordetails

    • FxCopRuleSet

      public FxCopRuleSet()
  • Methodendetails

    • addRule

      public void addRule(Element element)
      Parse the element and insert the rule into the rule set.
      Parameter:
      element - the element
    • contains

      public boolean contains(String category, String checkId)
      Returns if the rule set contains a rule for the specified category and id
      Parameter:
      category - the rule category
      checkId - the rule id
      Gibt zurück:
      true if the rule set contains a rule for the specified category and id, false otherwise
    • getRule

      @CheckForNull public FxCopRule getRule(String category, String checkId)
      Returns the specified rule if it exists
      Parameter:
      category - the rule category
      checkId - the id of the rule
      Gibt zurück:
      the rule; null otherwise