Package org.spdx.maven
Class PathSpecificSpdxInfo
java.lang.Object
org.spdx.maven.PathSpecificSpdxInfo
Simple class to hold SPDX data for a file or directory. The only required
parameter is the File.
- Author:
- Gary O'Neall
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefaultFileInformation
(SpdxDefaultFileInformation defaults, SpdxDocument spdxDoc) Get the default file information to be used with this file pathgetPath()
-
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 pathspdxDoc
- 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
- Returns:
- Path for directory or file to which this SPDX data is applied
-