@Deprecated public class SPDXFile extends Object implements Comparable<SPDXFile>, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
FILE_TYPE_TO_RESOURCE
Deprecated.
|
static Map<String,String> |
RESOURCE_TO_FILE_TYPE
Deprecated.
|
| Constructor and Description |
|---|
SPDXFile(IModelContainer modelContainer,
org.apache.jena.graph.Node fileNode)
Deprecated.
Construct an SPDX File form the fileNode
|
SPDXFile(String name,
String type,
String sha1,
AnyLicenseInfo concludedLicenses,
AnyLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf)
Deprecated.
|
SPDXFile(String name,
String type,
String sha1,
AnyLicenseInfo concludedLicenses,
AnyLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment)
Deprecated.
|
SPDXFile(String name,
String type,
String sha1,
AnyLicenseInfo concludedLicenses,
AnyLicenseInfo[] seenLicenses,
String licenseComments,
String copyright,
DOAPProject[] artifactOf,
String comment,
SPDXFile[] fileDependencies,
String[] contributors,
String noticeText)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
SPDXFile |
clone()
Deprecated.
|
SPDXFile |
clone(SPDXDocument doc,
String fileUri)
Deprecated.
Create a deep copy or clone of this file including all properties.
|
int |
compareTo(SPDXFile file)
Deprecated.
This method is used for sorting a list of SPDX files
|
org.apache.jena.rdf.model.Resource |
createResource(SPDXDocument doc,
String uri)
Deprecated.
Create a resource for this SPDX file
|
boolean |
equals(Object o)
Deprecated.
|
boolean |
equivalent(SPDXFile compareToFile)
Deprecated.
Returns true if all of the properties of the compareToFile are
equivalent or equal to all properties of this SPDXFile.
|
static String |
fileTypeResourceToString(org.apache.jena.rdf.model.Resource fileTypeResource)
Deprecated.
|
static org.apache.jena.rdf.model.Resource |
fileTypeStringToTypeResource(String fileType,
org.apache.jena.rdf.model.Model model)
Deprecated.
Converts a string file type to an RDF resource
|
protected static org.apache.jena.rdf.model.Resource |
findFileResource(org.apache.jena.rdf.model.Model model,
SPDXFile spdxFile)
Deprecated.
Finds the resource for an existing file in the model
|
DOAPProject[] |
getArtifactOf()
Deprecated.
|
String |
getComment()
Deprecated.
|
AnyLicenseInfo |
getConcludedLicenses()
Deprecated.
|
String[] |
getContributors()
Deprecated.
|
String |
getCopyright()
Deprecated.
|
SPDXFile[] |
getFileDependencies()
Deprecated.
|
String |
getLicenseComments()
Deprecated.
|
String |
getName()
Deprecated.
|
String |
getNoticeText()
Deprecated.
|
protected org.apache.jena.rdf.model.Resource |
getResource()
Deprecated.
|
AnyLicenseInfo[] |
getSeenLicenses()
Deprecated.
|
String |
getSha1()
Deprecated.
|
String |
getType()
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
setArtifactOf(DOAPProject[] artifactOf)
Deprecated.
|
void |
setComment(String comment)
Deprecated.
|
void |
setConcludedLicenses(AnyLicenseInfo fileLicenses)
Deprecated.
|
void |
setContributors(String[] contributors)
Deprecated.
Set the contributors to the file
|
void |
setCopyright(String copyright)
Deprecated.
|
void |
setFileDependencies(SPDXFile[] fileDependencies,
SPDXDocument doc)
Deprecated.
Set the file dependencies for this file
|
void |
setLicenseComments(String licenseComments)
Deprecated.
|
void |
setName(String name)
Deprecated.
|
void |
setNoticeText(String noticeText)
Deprecated.
|
void |
setSeenLicenses(AnyLicenseInfo[] seenLicenses)
Deprecated.
|
void |
setSha1(String sha1)
Deprecated.
|
void |
setType(String type)
Deprecated.
|
List<String> |
verify()
Deprecated.
|
public SPDXFile(IModelContainer modelContainer, org.apache.jena.graph.Node fileNode) throws InvalidSPDXAnalysisException
fileNode - RDF Graph node representing the SPDX FileInvalidSPDXAnalysisExceptionpublic SPDXFile(String name, String type, String sha1, AnyLicenseInfo concludedLicenses, AnyLicenseInfo[] seenLicenses, String licenseComments, String copyright, DOAPProject[] artifactOf, String comment, SPDXFile[] fileDependencies, String[] contributors, String noticeText)
public SPDXFile(String name, String type, String sha1, AnyLicenseInfo concludedLicenses, AnyLicenseInfo[] seenLicenses, String licenseComments, String copyright, DOAPProject[] artifactOf)
public SPDXFile(String name, String type, String sha1, AnyLicenseInfo concludedLicenses, AnyLicenseInfo[] seenLicenses, String licenseComments, String copyright, DOAPProject[] artifactOf, String comment)
public org.apache.jena.rdf.model.Resource createResource(SPDXDocument doc, String uri) throws InvalidSPDXAnalysisException
uri - URI for the file resourcedoc - SPDX document containing the SPDX fileInvalidSPDXAnalysisExceptionprotected static org.apache.jena.rdf.model.Resource findFileResource(org.apache.jena.rdf.model.Model model,
SPDXFile spdxFile)
throws InvalidSPDXAnalysisException
spdxFile - InvalidSPDXAnalysisExceptionpublic AnyLicenseInfo[] getSeenLicenses()
InvalidSPDXAnalysisExceptionpublic void setSeenLicenses(AnyLicenseInfo[] seenLicenses) throws InvalidSPDXAnalysisException
seenLicenses - the seenLicenses to setInvalidSPDXAnalysisExceptionpublic String getLicenseComments()
public void setLicenseComments(String licenseComments)
licenseComments - the licenseComments to setpublic String getNoticeText()
public void setNoticeText(String noticeText)
noticeTexgt - the noticeText to setpublic String getComment()
public void setComment(String comment)
public String getCopyright()
public void setCopyright(String copyright)
copyright - the copyright to setpublic String getName()
public void setName(String name)
name - the name to setpublic AnyLicenseInfo getConcludedLicenses()
InvalidSPDXAnalysisExceptionpublic void setConcludedLicenses(AnyLicenseInfo fileLicenses) throws InvalidSPDXAnalysisException
fileLicenses - the fileLicenses to setInvalidSPDXAnalysisExceptionpublic String getSha1()
InvalidSPDXAnalysisExceptionpublic void setSha1(String sha1)
sha1 - the sha1 to setpublic String getType()
InvalidSPDXAnalysisExceptionpublic void setType(String type) throws InvalidSPDXAnalysisException
type - the type to setInvalidSPDXAnalysisExceptionpublic static org.apache.jena.rdf.model.Resource fileTypeStringToTypeResource(String fileType, org.apache.jena.rdf.model.Model model) throws InvalidSPDXAnalysisException
fileType - InvalidSPDXAnalysisExceptionpublic static String fileTypeResourceToString(org.apache.jena.rdf.model.Resource fileTypeResource) throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic DOAPProject[] getArtifactOf()
InvalidSPDXAnalysisExceptionpublic void setArtifactOf(DOAPProject[] artifactOf)
artifactOf - the artifactOf to setpublic SPDXFile[] getFileDependencies()
InvalidSPDXAnalysisExceptionpublic void setFileDependencies(SPDXFile[] fileDependencies, SPDXDocument doc) throws InvalidSPDXAnalysisException
fileDependencies - doc - SPDX Document containing the file dependenciesInvalidSPDXAnalysisExceptionprotected org.apache.jena.rdf.model.Resource getResource()
public String[] getContributors()
public void setContributors(String[] contributors)
contributors - public int compareTo(SPDXFile file)
compareTo in interface Comparable<SPDXFile>file - SPDXFile that is comparedpublic SPDXFile clone(SPDXDocument doc, String fileUri) throws InvalidSPDXAnalysisException
doc - Document containing the Model used to create the copy of this SPDX filefileUri - InvalidSPDXAnalysisExceptionpublic boolean equivalent(SPDXFile compareToFile)
compareToFile - Copyright © 2018 Linux Foundation. All Rights Reserved.