Class XmlReportParser

java.lang.Object
com.reallifedeveloper.maven.jdepend.xml.XmlReportParser

public final class XmlReportParser extends Object
A parser for XML files created by JDepend.
Author:
RealLifeDeveloper
  • Constructor Details

    • XmlReportParser

      public XmlReportParser() throws jakarta.xml.bind.JAXBException
      Creates a new XmlReportParser.
      Throws:
      jakarta.xml.bind.JAXBException - if creating the underlying JAXB unmarshaller fails
  • Method Details

    • parse

      public XmlReport parse(File file) throws jakarta.xml.bind.JAXBException
      Parses a file with XML generated by JDepend and creates the corresponding XmlReport.
      Parameters:
      file - the location of the JDepend XML file to parse
      Returns:
      an XmlReport representing the information in the XML file
      Throws:
      jakarta.xml.bind.JAXBException - if any unepxected errors occur while parsing