java.lang.Object
edu.hm.hafner.analysis.IssueParser
edu.hm.hafner.analysis.parser.XmlParser
Alle implementierten Schnittstellen:
Serializable

public class XmlParser extends IssueParser
Parser that reads the 1:1 XML mapping of the properties of the Issue bean.
Autor:
Raphael Furch
Siehe auch:
  • Konstruktordetails

    • XmlParser

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

      public XmlParser(String root)
      Create a new XmlParser instance.
      Parameter:
      root - path to issues tag.
  • Methodendetails

    • accepts

      public boolean accepts(ReaderFactory readerFactory)
      Beschreibung aus Klasse kopiert: 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.
      Setzt außer Kraft:
      accepts in Klasse IssueParser
      Parameter:
      readerFactory - provides a reader to the reports
      Gibt zurück:
      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)
      Beschreibung aus Klasse kopiert: IssueParser
      Parses the specified file for issues.
      Angegeben von:
      parse in Klasse IssueParser
      Parameter:
      readerFactory - provides a reader to the reports
      Gibt zurück:
      the issues