Class PathSpecificSpdxInfo

java.lang.Object
org.spdx.maven.PathSpecificSpdxInfo

public class PathSpecificSpdxInfo extends Object
Simple class to hold SPDX data for a file or directory. The only required parameter is the File.
Author:
Gary O'Neall
  • Constructor Details

    • PathSpecificSpdxInfo

      public PathSpecificSpdxInfo()
      Default constructor
  • Method Details

    • getDefaultFileInformation

      public SpdxDefaultFileInformation getDefaultFileInformation(SpdxDefaultFileInformation defaults, SpdxDocument spdxDoc) throws InvalidSPDXAnalysisException
      Get the default file information to be used with this file path
      Parameters:
      defaults - Default file information to use if the parameter was not specified for this file path
      spdxDoc - SPDX document containing any extracted license infos that may be needed for concluded or declared licenses
      Returns:
      default file information to be used with this file path
      Throws:
      InvalidSPDXAnalysisException
    • getPath

      public String getPath()
      Returns:
      Path for directory or file to which this SPDX data is applied