Package lib.reports

Class PackageReportImpl

java.lang.Object
lib.reports.PackageReportImpl
All Implemented Interfaces:
PackageReport, Report

public class PackageReportImpl extends Object implements PackageReport
Class to manage report about package. Implements PackageReport
  • Constructor Details

    • PackageReportImpl

      public PackageReportImpl()
      Class constructor. Initialize all information as empty
  • Method Details

    • getClassesReports

      public List<ClassReport> getClassesReports()
      Description copied from interface: PackageReport
      Get reports of classes inside package report
      Specified by:
      getClassesReports in interface PackageReport
      Returns:
      a list of ClassReport inside package
    • addClassReport

      public void addClassReport(ClassReport classReport)
      Description copied from interface: PackageReport
      Add class report to class reports of package report
      Specified by:
      addClassReport in interface PackageReport
      Parameters:
      classReport - class report to add to package report
    • getInterfaceReports

      public List<InterfaceReport> getInterfaceReports()
      Description copied from interface: PackageReport
      Get reports of interfaces inside package report
      Specified by:
      getInterfaceReports in interface PackageReport
      Returns:
      a list of InterfaceReport inside package
    • addInterfaceReport

      public void addInterfaceReport(InterfaceReport interfaceReport)
      Description copied from interface: PackageReport
      Add interface report to interfaces report of package report
      Specified by:
      addInterfaceReport in interface PackageReport
      Parameters:
      interfaceReport - interface report to add to package report
    • getName

      public String getName()
      Description copied from interface: Report
      Get the name of the item (class/interface)
      Specified by:
      getName in interface Report
      Returns:
      the name of the item
    • setName

      public void setName(String name)
      Description copied from interface: Report
      Set the name of the item (class/interface)
      Specified by:
      setName in interface Report
      Parameters:
      name - the name
    • getSourceFullPath

      public String getSourceFullPath()
      Description copied from interface: Report
      Get the path from source root
      Specified by:
      getSourceFullPath in interface Report
      Returns:
      the path from source root
    • setFullPath

      public void setFullPath(String fullPath)
      Description copied from interface: Report
      Set the path from source root
      Specified by:
      setFullPath in interface Report
      Parameters:
      fullPath - the path from source root
    • toString

      public String toString()
      Overrides:
      toString in class Object