| Package | Description |
|---|---|
| org.spdx.compare | |
| org.spdx.html | |
| org.spdx.rdfparser | |
| org.spdx.spdxspreadsheet | |
| org.spdx.tag | |
| org.spdx.tools |
| Modifier and Type | Method and Description |
|---|---|
void |
SpdxComparer.compare(SPDXDocument[] compareDocs)
Compares multiple SPDX documents
|
void |
SpdxComparer.compare(SPDXDocument doc1,
SPDXDocument doc2)
Compares 2 SPDX documents
|
void |
ReviewerSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
PackageSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
MultiDocumentSpreadsheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
ExtractedLicenseSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
void |
DocumentSheet.importCompareResults(SpdxComparer comparer,
String[] docNames)
Import comapare results from a comparison
|
void |
CreatorSheet.importCompareResults(SpdxComparer comparer,
String[] docNames) |
| Constructor and Description |
|---|
SpdxFileDifference(SPDXFile fileA,
SPDXFile fileB,
boolean concludedLicensesEqual,
boolean seenLicensesEqual,
SPDXLicenseInfo[] uniqueSeenLicensesA,
SPDXLicenseInfo[] uniqueSeenLicensesB,
boolean artifactOfsEquals,
DOAPProject[] uniqueArtifactOfA,
DOAPProject[] uniqueArtifactOfB) |
| Modifier and Type | Method and Description |
|---|---|
static HashMap<String,Object> |
MustacheMap.buildMustachMap(SPDXDocument doc) |
| Constructor and Description |
|---|
ExtractedLicensingInfoContext(InvalidSPDXAnalysisException e) |
FileContext(InvalidSPDXAnalysisException e) |
ReviewerContext(InvalidSPDXAnalysisException e)
Add a reviewer which will return an error for any of the methods called
This may be considered a bit of a kludge for the error reporting, so
feel free to implement a better approach
|
VerificationCodeContext(InvalidSPDXAnalysisException e) |
| Constructor and Description |
|---|
PackageContext(SPDXDocument doc) |
| Modifier and Type | Class and Description |
|---|---|
class |
NoStandardLicenseRdfModel |
| Modifier and Type | Method and Description |
|---|---|
void |
SPDXDocument.SPDXPackage.addFile(SPDXFile file)
Add a file to the package
|
void |
SPDXDocument.addNewExtractedLicenseInfo(SPDXNonStandardLicense license)
Adds the license as a new ExtractedLicenseInfo
|
SPDXNonStandardLicense |
SPDXDocument.addNewExtractedLicenseInfo(String licenseText)
Adds a new non-standard license containing the text provided.
|
static String |
SPDXChecksum.algorithmResourceToString(com.hp.hpl.jena.rdf.model.Resource algorithmResource) |
static com.hp.hpl.jena.rdf.model.Resource |
SPDXChecksum.algorithmStringToResource(String algorithm,
com.hp.hpl.jena.rdf.model.Model model)
Converts a string algorithm to an RDF resource
|
protected static com.hp.hpl.jena.rdf.model.Resource |
SPDXFile.convertToResource(com.hp.hpl.jena.rdf.model.Model cmodel,
com.hp.hpl.jena.graph.Node cnode)
Convert a node to a resource
|
protected static com.hp.hpl.jena.rdf.model.Resource |
SPDXChecksum.convertToResource(com.hp.hpl.jena.rdf.model.Model cmodel,
com.hp.hpl.jena.graph.Node cnode)
Convert a node to a resource
|
com.hp.hpl.jena.rdf.model.Resource |
SPDXFile.createResource(com.hp.hpl.jena.rdf.model.Model model) |
void |
SPDXDocument.createSpdxAnalysis(String uri)
Creates a new empty SPDX Document with the current SPDX document version.
|
void |
SPDXDocument.createSpdxAnalysis(String uri,
String spdxVersion)
Creates a new empty SPDX Document.
|
static SPDXDocument |
SPDXDocumentFactory.createSpdxDocument(InputStream input,
String baseUri,
String fileType) |
static SPDXDocument |
SPDXDocumentFactory.createSpdxDocument(com.hp.hpl.jena.rdf.model.Model model)
Create a new SPDX Document populating the data from the existing model
|
void |
SPDXDocument.createSpdxPackage() |
void |
SPDXDocument.createSpdxPackage(String uri)
Creates an empty SPDX package
|
static SPDXDocument |
SPDXDocumentFactory.creatSpdxDocument(String fileNameOrUrl)
Create an SPDX Document from a file
|
protected boolean |
SPDXDocument.extractedLicenseExists(String id) |
static String |
SPDXFile.fileTypeResourceToString(com.hp.hpl.jena.rdf.model.Resource fileTypeResource) |
static com.hp.hpl.jena.rdf.model.Resource |
SPDXFile.fileTypeStringToTypeResource(String fileType,
com.hp.hpl.jena.rdf.model.Model model)
Converts a string file type to an RDF resource
|
protected static com.hp.hpl.jena.rdf.model.Resource |
SPDXFile.findFileResource(com.hp.hpl.jena.rdf.model.Model model,
SPDXFile spdxFile)
Finds the resource for an existing file in the model
|
protected static com.hp.hpl.jena.rdf.model.Resource |
SPDXChecksum.findSpdxChecksum(com.hp.hpl.jena.rdf.model.Model model,
SPDXChecksum checksum) |
SPDXLicenseInfo |
SPDXDocument.SPDXPackage.getConcludedLicenses() |
String |
SPDXDocument.getCreated()
Deprecated.
|
String |
SPDXDocument.getCreatorComment()
Deprecated.
|
SPDXCreatorInformation |
SPDXDocument.getCreatorInfo() |
String[] |
SPDXDocument.getCreators()
Deprecated.
|
SPDXStandardLicense |
SPDXDocument.getDataLicense() |
String |
SPDXDocument.SPDXPackage.getDeclaredCopyright() |
SPDXLicenseInfo |
SPDXDocument.SPDXPackage.getDeclaredLicense() |
String |
SPDXDocument.SPDXPackage.getDeclaredName() |
String |
SPDXDocument.SPDXPackage.getDescription() |
String |
SPDXDocument.getDocumentComment() |
String |
SPDXDocument.SPDXPackage.getDownloadUrl() |
SPDXNonStandardLicense[] |
SPDXDocument.getExtractedLicenseInfos() |
String |
SPDXDocument.SPDXPackage.getFileName() |
SPDXFile[] |
SPDXDocument.getFileReferences() |
SPDXFile[] |
SPDXDocument.SPDXPackage.getFiles() |
String |
SPDXDocument.SPDXPackage.getHomePage() |
String |
SPDXDocument.SPDXPackage.getLicenseComment() |
protected static SPDXStandardLicense |
SPDXLicenseInfoFactory.getLicenseFromStdLicModel(String uri) |
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.
|
int |
SPDXDocument.getLicenseRefNum(String licenseID)
Parses a license ID and return the integer representing the ID number (e.g.
|
String |
SPDXDocument.SPDXPackage.getOriginator() |
SPDXPackageInfo |
SPDXDocument.SPDXPackage.getPackageInfo() |
SPDXReview[] |
SPDXDocument.getReviewers() |
String |
SPDXDocument.SPDXPackage.getSha1() |
String |
SPDXDocument.SPDXPackage.getShortDescription() |
String |
SPDXDocument.SPDXPackage.getSourceInfo() |
SPDXDocument.SPDXPackage |
SPDXDocument.getSpdxPackage() |
String |
SPDXDocument.getSpdxVersion() |
static SPDXStandardLicense |
SPDXLicenseInfoFactory.getStandardLicenseById(String licenseId) |
String |
SPDXDocument.SPDXPackage.getSupplier() |
SpdxPackageVerificationCode |
SPDXDocument.SPDXPackage.getVerificationCode() |
String |
SPDXDocument.SPDXPackage.getVersionInfo() |
void |
SPDXDocument.SPDXPackage.removeFile(String fileName)
Removes all SPDX files by the given name
|
void |
SPDXChecksum.setAlgorithm(String algorithm) |
void |
SPDXDocument.SPDXPackage.setConcludedLicenses(SPDXLicenseInfo detectedLicenses) |
void |
SPDXDocument.setCreationInfo(SPDXCreatorInformation creator) |
void |
SPDXDocument.setDataLicense(SPDXStandardLicense dataLicense) |
void |
SPDXDocument.SPDXPackage.setDeclaredCopyright(String declaredCopyright) |
void |
SPDXDocument.SPDXPackage.setDeclaredLicense(SPDXLicenseInfo declaredLicense) |
void |
SPDXDocument.SPDXPackage.setDeclaredName(String declaredName) |
void |
SPDXDocument.SPDXPackage.setDescription(String description) |
void |
SPDXDocument.setDocumentComment(String comment) |
void |
SPDXDocument.SPDXPackage.setDownloadUrl(String url) |
void |
SPDXDocument.setExtractedLicenseInfos(SPDXNonStandardLicense[] nonStandardLicenses)
Resets all ExtractedLicenseInfos to nonStandardLicenses.
|
void |
SPDXFile.setFileDependencies(SPDXFile[] fileDependencies)
Set the file dependencies for this file
|
void |
SPDXDocument.SPDXPackage.setFileName(String fileName) |
void |
SPDXDocument.SPDXPackage.setFiles(SPDXFile[] files) |
void |
SPDXDocument.SPDXPackage.setHomePage(String url) |
void |
SPDXDocument.SPDXPackage.setLicenseComment(String comments) |
void |
SPDXDocument.SPDXPackage.setLicenseInfoFromFiles(SPDXLicenseInfo[] licenseInfo) |
void |
SPDXDocument.SPDXPackage.setOriginator(String originator)
Set the originator
|
void |
SPDXDocument.setReviewers(SPDXReview[] reviewers) |
void |
SPDXDocument.SPDXPackage.setSha1(String sha1) |
void |
SPDXDocument.SPDXPackage.setShortDescription(String shortDescription) |
void |
SPDXDocument.SPDXPackage.setSourceInfo(String sourceInfo) |
void |
SPDXDocument.setSpdxVersion(String spdxVersion) |
void |
SPDXDocument.SPDXPackage.setSupplier(String supplier)
Set the Supplier
|
void |
SPDXFile.setType(String type) |
void |
DOAPProject.setUri(String uri) |
void |
SPDXDocument.SPDXPackage.setVerificationCode(SpdxPackageVerificationCode verificationCode) |
void |
SPDXDocument.SPDXPackage.setVersionInfo(String versionInfo)
Set the version information of the package
|
| Constructor and Description |
|---|
DOAPProject(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node node) |
SPDXChecksum(com.hp.hpl.jena.rdf.model.Model spdxModel,
com.hp.hpl.jena.graph.Node checksumNode) |
SPDXConjunctiveLicenseSet(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node node) |
SPDXCreatorInformation(com.hp.hpl.jena.rdf.model.Model spdxModel,
com.hp.hpl.jena.graph.Node creatorNode) |
SPDXDisjunctiveLicenseSet(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node licenseInfoNode) |
SPDXDocument(com.hp.hpl.jena.rdf.model.Model model) |
SPDXFile(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node fileNode)
Construct an SPDX File form the fileNode
|
SPDXLicenseSet(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node licenseInfoNode) |
SpdxNoAssertionLicense(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node licenseInfoNode) |
SPDXNoneLicense(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node node) |
SPDXNonStandardLicense(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node licenseInfoNode) |
SpdxPackageVerificationCode(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node verificationCodeNode) |
SPDXReview(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.graph.Node reviewerNode) |
SPDXStandardLicense(com.hp.hpl.jena.rdf.model.Model spdxModel,
com.hp.hpl.jena.graph.Node licenseNode)
Constructs an SPDX License from the licenseNode
|
SPDXStandardLicense(String name,
String id,
String text,
String[] sourceUrl,
String notes,
String standardLicenseNotice,
String template,
boolean osiApproved) |
| Modifier and Type | Method and Description |
|---|---|
SPDXStandardLicense |
LicenseSheet.getLicense(int rowNum)
Retrieve a license for a specific row in the sheet
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CommonCode.printDoc(SPDXDocument doc,
PrintWriter out,
Properties constants) |
| Modifier and Type | Method and Description |
|---|---|
static void |
RdfToSpreadsheet.copyRdfXmlToSpreadsheet(SPDXDocument doc,
SPDXSpreadsheet ss) |
static void |
SpreadsheetToRDF.copySpreadsheetToSPDXAnalysis(SPDXSpreadsheet ss,
SPDXDocument analysis) |
static void |
RdfToHtml.rdfToHtml(SPDXDocument doc,
Writer writer) |
static void |
RdfToHtml.rdfToHtml(SPDXDocument doc,
Writer writer,
String templateDirName,
String templateFileName) |
Copyright © 2014 Linux Foundation. All Rights Reserved.