Class XmlReport
java.lang.Object
com.reallifedeveloper.maven.jdepend.xml.XmlReport
A representation of the XML report generated by JDepend.
- Author:
- RealLifeDeveloper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Contains information from theClass
element.static class
Contains information from thePackage
element.static class
Contains information from theCycles
element.static class
Contains information from theStats
element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindPackageWithCycle
(String packageName) If the given package has any cycles, provides information about this.Gives the packages that were included in the JDepend report, but not successfully analyzed.Gives the packages that were successfully analyzed by JDepend.
-
Constructor Details
-
XmlReport
public XmlReport()
-
-
Method Details
-
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 likepackage referenced, but not analyzed
.- Returns:
- the packages that were successfully analyzed by JDepend
-
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
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 namedpackageName
contains cycles, an empty optional otherwise
-