Class XmlParser

    • Constructor Detail

      • XmlParser

        public XmlParser()
        Create a new XmlParser object.
      • XmlParser

        public XmlParser​(String root)
        Create a new XmlParser instance.
        Parameters:
        root - path to issues tag.
    • Method Detail

      • accepts

        public boolean accepts​(ReaderFactory readerFactory)
        Description copied from class: IssueParser
        Returns whether this parser accepts the specified file as valid input. Parsers may reject a file if it is in the wrong format to avoid exceptions during parsing.
        Overrides:
        accepts in class IssueParser
        Parameters:
        readerFactory - provides a reader to the reports
        Returns:
        true if this parser accepts this file as valid input, or false if the file could not be parsed by this parser
      • parse

        public Report parse​(ReaderFactory readerFactory)
        Description copied from class: IssueParser
        Parses the specified file for issues.
        Specified by:
        parse in class IssueParser
        Parameters:
        readerFactory - provides a reader to the reports
        Returns:
        the issues