Class XmlReport

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

public class XmlReport extends Object
A representation of the XML report generated by JDepend.
Author:
RealLifeDeveloper
  • Constructor Details

    • XmlReport

      public XmlReport()
  • Method Details

    • packagesWithoutError

      public List<XmlReport.XmlPackage> packagesWithoutError()
      Gives the packages that were successfully analyzed by JDepend.

      The XML report generataed by JDepend includes external packages, e.g., java.lang, but with an error message saying something like package referenced, but not analyzed.

      Returns:
      the packages that were successfully analyzed by JDepend
    • packagesWithError

      public List<XmlReport.XmlPackage> packagesWithError()
      Gives the packages that were included in the JDepend report, but not successfully analyzed.
      Returns:
      the packages that were included in the JDepend report, but not successfully analyzed
    • findPackageWithCycle

      public Optional<XmlReport.XmlPackageWithCycle> findPackageWithCycle(String packageName)
      If the given package has any cycles, provides information about this.
      Parameters:
      packageName - the name of the package to check
      Returns:
      an optional containing an XmlReport.XmlPackageWithCycle if the package named packageName contains cycles, an empty optional otherwise