Class XpathFilterElement

    • Constructor Detail

      • XpathFilterElement

        public XpathFilterElement​(String files,
                                  String checks,
                                  String message,
                                  String moduleId,
                                  String query)
        Creates a XpathElement instance.
        Parameters:
        files - regular expression for names of filtered files
        checks - regular expression for filtered check classes
        message - regular expression for messages.
        moduleId - the module id
        query - the xpath query
        Throws:
        IllegalArgumentException - if the xpath query is not expected.
      • XpathFilterElement

        public XpathFilterElement​(Pattern files,
                                  Pattern checks,
                                  Pattern message,
                                  String moduleId,
                                  String query)
        Creates a XpathElement instance.
        Parameters:
        files - regular expression for names of filtered files
        checks - regular expression for filtered check classes
        message - regular expression for messages.
        moduleId - the module id
        query - the xpath query
        Throws:
        IllegalArgumentException - if the xpath query is not correct.