| Package | Description |
|---|---|
| org.spdx.compare | |
| org.spdx.rdfparser | |
| org.spdx.spdxspreadsheet |
| Modifier and Type | Method and Description |
|---|---|
SPDXLicenseInfo[] |
SpdxFileDifference.getUniqueSeenLicensesA() |
SPDXLicenseInfo[] |
SpdxFileComparer.getUniqueSeenLicensesA() |
SPDXLicenseInfo[] |
SpdxFileDifference.getUniqueSeenLicensesB() |
SPDXLicenseInfo[] |
SpdxFileComparer.getUniqueSeenLicensesB() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SpdxComparer.compareLicense(int doc1,
SPDXLicenseInfo license1,
int doc2,
SPDXLicenseInfo license2)
Compares two licenses from two different SPDX documents taking into account
the extracted license infos who's ID's may be different between the two documents
Note: The ExtracedLicenseIDMap must be initialized before this method is invoked
|
static boolean |
LicenseCompareHelper.isLicenseEqual(SPDXLicenseInfo license1,
SPDXLicenseInfo license2,
HashMap<String,String> xlationMap)
Compares two licenses from potentially two different documents which may have
different license ID's for the same license
|
protected String |
PackageSheet.licenseInfosToString(SPDXLicenseInfo[] licenseInfoFromFiles) |
| Constructor and Description |
|---|
SpdxFileDifference(SPDXFile fileA,
SPDXFile fileB,
boolean concludedLicensesEqual,
boolean seenLicensesEqual,
SPDXLicenseInfo[] uniqueSeenLicensesA,
SPDXLicenseInfo[] uniqueSeenLicensesB,
boolean artifactOfsEquals,
DOAPProject[] uniqueArtifactOfA,
DOAPProject[] uniqueArtifactOfB) |
SpdxFileDifference(SPDXFile fileA,
SPDXFile fileB,
boolean concludedLicensesEqual,
boolean seenLicensesEqual,
SPDXLicenseInfo[] uniqueSeenLicensesA,
SPDXLicenseInfo[] uniqueSeenLicensesB,
boolean artifactOfsEquals,
DOAPProject[] uniqueArtifactOfA,
DOAPProject[] uniqueArtifactOfB) |
| Modifier and Type | Class and Description |
|---|---|
class |
SPDXConjunctiveLicenseSet
A set of licenses where all of the licenses apply
|
class |
SPDXDisjunctiveLicenseSet
A set of licenses where there is a choice of one of the licenses in the set
|
class |
SPDXLicense
Describes a license
All licenses have an ID.
|
class |
SPDXLicenseSet
A specific form of license information where there is a set of licenses
represented
|
class |
SpdxNoAssertionLicense
Special class of license to represent no asserted license license in the file or packages
|
class |
SPDXNoneLicense
A special license meaning that no license was found
|
class |
SPDXNonStandardLicense
A non-standard license which is valid only within an SPDXAnalysis.
|
class |
SPDXStandardLicense |
| Modifier and Type | Field and Description |
|---|---|
protected HashSet<SPDXLicenseInfo> |
SPDXLicenseSet.licenseInfos |
| Modifier and Type | Method and Description |
|---|---|
SPDXLicenseInfo |
SPDXPackageInfo.getConcludedLicense() |
SPDXLicenseInfo |
SPDXFile.getConcludedLicenses() |
SPDXLicenseInfo |
SPDXDocument.SPDXPackage.getConcludedLicenses() |
SPDXLicenseInfo |
SPDXDocument.SPDXPackage.getDeclaredLicense() |
SPDXLicenseInfo |
SPDXPackageInfo.getDeclaredLicenses() |
SPDXLicenseInfo[] |
SPDXDocument.SPDXPackage.getLicenseInfoFromFiles() |
static SPDXLicenseInfo |
SPDXLicenseInfoFactory.getLicenseInfoFromModel(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node node)
Create the appropriate SPDXLicenseInfo from the model and node provided.
|
SPDXLicenseInfo[] |
SPDXPackageInfo.getLicensesFromFiles() |
SPDXLicenseInfo[] |
SPDXFile.getSeenLicenses() |
SPDXLicenseInfo[] |
SPDXLicenseSet.getSPDXLicenseInfos() |
static SPDXLicenseInfo |
SPDXLicenseInfoFactory.parseSPDXLicenseString(String licenseString)
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 (standard or non-standard)
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 |
|---|---|
void |
SPDXPackageInfo.setConcludedLicense(SPDXLicenseInfo concludedLicense) |
void |
SPDXFile.setConcludedLicenses(SPDXLicenseInfo fileLicenses) |
void |
SPDXDocument.SPDXPackage.setConcludedLicenses(SPDXLicenseInfo detectedLicenses) |
void |
SPDXPackageInfo.setDConcludedLicense(SPDXLicenseInfo concludedLicense) |
void |
SPDXDocument.SPDXPackage.setDeclaredLicense(SPDXLicenseInfo declaredLicense) |
void |
SPDXPackageInfo.setDeclaredLicenses(SPDXLicenseInfo declaredLicenses) |
void |
SPDXDocument.SPDXPackage.setLicenseInfoFromFiles(SPDXLicenseInfo[] licenseInfo) |
void |
SPDXPackageInfo.setLicensesFromFiles(SPDXLicenseInfo[] licensesFromFiles) |
void |
SPDXFile.setSeenLicenses(SPDXLicenseInfo[] seenLicenses) |
void |
SPDXLicenseSet.setSPDXLicenseInfos(SPDXLicenseInfo[] licenseInfos) |
| Constructor and Description |
|---|
SPDXConjunctiveLicenseSet(SPDXLicenseInfo[] conjunctiveLicenses) |
SPDXDisjunctiveLicenseSet(SPDXLicenseInfo[] disjunctiveLicenses) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment,
SPDXFile[] fileDependencies,
String[] contributors,
String noticeText) |
SPDXFile(String name,
String type,
String sha1,
SPDXLicenseInfo concludedLicenses,
SPDXLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment,
SPDXFile[] fileDependencies,
String[] contributors,
String noticeText) |
SPDXLicenseSet(SPDXLicenseInfo[] licenseInfos) |
SPDXPackageInfo(String declaredName,
String versionInfo,
String machineName,
String sha1,
String sourceInfo,
SPDXLicenseInfo declaredLicense,
SPDXLicenseInfo concludedLicense,
SPDXLicenseInfo[] licensesFromFiles,
String licenseComments,
String declaredCopyright,
String shortDescription,
String description,
String url,
SpdxPackageVerificationCode spdxPackageVerificationCode,
String supplier,
String originator,
String homePage) |
SPDXPackageInfo(String declaredName,
String versionInfo,
String machineName,
String sha1,
String sourceInfo,
SPDXLicenseInfo declaredLicense,
SPDXLicenseInfo concludedLicense,
SPDXLicenseInfo[] licensesFromFiles,
String licenseComments,
String declaredCopyright,
String shortDescription,
String description,
String url,
SpdxPackageVerificationCode spdxPackageVerificationCode,
String supplier,
String originator,
String homePage) |
| Modifier and Type | Method and Description |
|---|---|
static String |
PackageInfoSheet.licensesToString(SPDXLicenseInfo[] licenses) |
Copyright © 2014 Linux Foundation. All Rights Reserved.