| Package | Description |
|---|---|
| org.spdx.rdfparser.license |
Classes implementing the license model for the SPDX Parser
|
| org.spdx.rdfparser.model |
Model for the SPDX 2.0+ specification.
|
| org.spdx.spdxspreadsheet | |
| org.spdx.tag | |
| org.spdx.tools |
| Modifier and Type | Method and Description |
|---|---|
static AnyLicenseInfo |
LicenseInfoFactory.parseSPDXLicenseString(String licenseString,
SpdxDocumentContainer container)
Parses a license string and converts it into a SPDXLicenseInfo object
Syntax - A license set must start and end with a parenthesis "("
A conjunctive license set will have and AND after the first
licenseInfo term
A disjunctive license set will have an OR after the first
licenseInfo term
If there is no And or Or, then it is converted to a simple
license type
A space or tab must be used between license ID's and the
keywords AND and OR
A licenseID must NOT be "AND" or "OR"
|
| Modifier and Type | Method and Description |
|---|---|
SpdxDocumentContainer |
SpdxDocument.getDocumentContainer() |
| Constructor and Description |
|---|
SpdxDocument(SpdxDocumentContainer documentContainer,
org.apache.jena.graph.Node node) |
| Modifier and Type | Method and Description |
|---|---|
void |
ExternalRefsSheet.add(String packageId,
ExternalRef externalRef,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV2d0.findFileByName(String fileName,
SpdxDocumentContainer container)
Finds an SPDX file by name by searching through the rows for a matching file name
|
SpdxFile |
PerFileSheetV1d2.findFileByName(String fileName,
SpdxDocumentContainer container)
Finds an SPDX file by name by searching through the rows for a matching file name
|
ExternalRef[] |
ExternalRefsSheet.getExternalRefsForPkgid(String id,
SpdxDocumentContainer container)
Get all external references for a given package ID
|
SpdxFile |
PerFileSheetV2d0.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV1d2.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV1d1.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
SpdxFile |
PerFileSheetV09d3.getFileInfo(int rowNum,
SpdxDocumentContainer container) |
abstract SpdxFile |
PerFileSheet.getFileInfo(int rowNum,
SpdxDocumentContainer container)
Get the file information for a row in the PerFileSheet
|
SpdxPackage[] |
PackageInfoSheetV9d1.getPackages(SpdxDocumentContainer container) |
SpdxPackage[] |
PackageInfoSheetV2d1.getPackages(SpdxDocumentContainer container) |
SpdxPackage[] |
PackageInfoSheetV2d0.getPackages(SpdxDocumentContainer container) |
SpdxPackage[] |
PackageInfoSheetV1d2.getPackages(SpdxDocumentContainer container) |
SpdxPackage[] |
PackageInfoSheetV09d3.getPackages(SpdxDocumentContainer container) |
SpdxPackage[] |
PackageInfoSheetV09d2.getPackages(SpdxDocumentContainer container) |
abstract SpdxPackage[] |
PackageInfoSheet.getPackages(SpdxDocumentContainer container) |
Relationship |
RelationshipsSheet.getRelationship(int rowNum,
SpdxDocumentContainer container) |
SpdxSnippet |
SnippetSheet.getSnippet(int rowNum,
SpdxDocumentContainer container)
Get the SPDX snippet represented in the row rownum.
|
protected static String |
ExternalRefsSheet.refTypeToString(ReferenceType referenceType,
SpdxDocumentContainer container)
Convert a reference type to the type used in
|
protected static ReferenceType |
ExternalRefsSheet.stringToRefType(String refTypeStr,
SpdxDocumentContainer container)
Convert a string to a reference type
|
| Constructor and Description |
|---|
BuildDocument(SpdxDocumentContainer[] result,
Properties constants,
List<String> warnings) |
| Modifier and Type | Method and Description |
|---|---|
static SpdxDocumentContainer |
TagToRDF.convertTagFileToRdf(InputStream spdxTagFile,
String outputFormat,
List<String> warnings)
Convert an tag/value format input stream into an SPDX Document
|
Copyright © 2018 Linux Foundation. All Rights Reserved.