public class SpdxItem extends SpdxElement
annotations, comment, name, relationshipsmodel, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
SpdxItem(IModelContainer modelContainer,
org.apache.jena.graph.Node node)
Create an SPDX item from a Jena model
|
SpdxItem(String name,
String comment,
Annotation[] annotations,
Relationship[] relationships,
AnyLicenseInfo licenseConcluded,
AnyLicenseInfo[] licenseInfoFromFiles,
String copyrightText,
String licenseComment) |
| Modifier and Type | Method and Description |
|---|---|
SpdxItem |
clone() |
SpdxItem |
clone(Map<String,SpdxElement> clonedElementIds)
Clones this element, but prevents infinite recursion by
keeping track of all elements which have been cloned
|
protected AnyLicenseInfo |
cloneLicenseConcluded() |
protected AnyLicenseInfo[] |
cloneLicenseInfosFromFiles() |
boolean |
equivalent(IRdfModel o)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
boolean |
equivalent(IRdfModel o,
boolean testRelationships)
Test for equivalent
|
String |
getCopyrightText() |
String |
getLicenseComment()
Deprecated.
|
String |
getLicenseComments() |
AnyLicenseInfo |
getLicenseConcluded() |
AnyLicenseInfo[] |
getLicenseInfoFromFiles() |
protected String |
getLicenseInfoFromFilesPropertyName() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Model model) |
void |
populateModel()
Populate the RDF model from the Java properties
|
void |
setCopyrightText(String copyrightText) |
void |
setLicenseComment(String licenseComment)
Deprecated.
|
void |
setLicenseComments(String licenseComments) |
void |
setLicenseConcluded(AnyLicenseInfo licenseConcluded) |
void |
setLicenseInfosFromFiles(AnyLicenseInfo[] licenseInfoFromFiles) |
List<String> |
verify() |
addAnnotation, addNameToWarnings, addRelationship, arraysEquivalent, arraysEquivalent, cloneAnnotations, cloneRelationships, equivalentConsideringNull, equivalentConsideringNull, getAnnotations, getComment, getId, getName, getNamePropertyName, getRelationships, getUri, setAnnotations, setComment, setId, setName, setRelationships, toStringaddPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, createResource, createResource, equals, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, findDuplicateResource, findElementPropertyValue, findExternalDocRefPropertyValues, findExternalDocRefPropertyValues, findExternalRefPropertyValues, findIntPropertyValue, findMultipleChecksumPropertyValues, findMultipleDoapPropertyValues, findMultipleElementPropertyValues, findMultiplePropertyValues, findReferenceTypePropertyValue, findRelationshipPropertyValues, findReviewPropertyValues, findSinglePointerPropertyValue, findSinglePropertyValue, findStartEndPointerPropertyValues, findUriPropertyValue, findUriPropertyValues, findVerificationCodePropertyValue, getNode, hashCode, isRefreshOnGet, removePropertyValue, resourcesEqual, setMultipleObjectsForSameNode, setPropertyUriValue, setPropertyUriValues, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNodepublic SpdxItem(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException
modelContainer - Container containing the modelnode - InvalidSPDXAnalysisExceptionpublic SpdxItem(String name, String comment, Annotation[] annotations, Relationship[] relationships, AnyLicenseInfo licenseConcluded, AnyLicenseInfo[] licenseInfoFromFiles, String copyrightText, String licenseComment)
name - Name of the itemcomment - Optional comment about the itemannotations - Optional annotations on the itemsrelationships - Optional relationships with other SPDX elementslicenseConcluded - Concluded license for this itemlicenseInfoFromFiles - License infos from files for this itemcopyrightText - Copyright text for this itemlicenseComment - Optional comment on the licensepublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class SpdxElementInvalidSPDXAnalysisExceptionpublic void populateModel()
throws InvalidSPDXAnalysisException
RdfModelObjectpopulateModel in class SpdxElementInvalidSPDXAnalysisExceptionprotected String getLicenseInfoFromFilesPropertyName()
public AnyLicenseInfo getLicenseConcluded()
public void setLicenseConcluded(AnyLicenseInfo licenseConcluded) throws InvalidSPDXAnalysisException
licenseConcluded - the licenseConcluded to setInvalidSPDXAnalysisExceptionpublic AnyLicenseInfo[] getLicenseInfoFromFiles()
public void setLicenseInfosFromFiles(AnyLicenseInfo[] licenseInfoFromFiles) throws InvalidSPDXAnalysisException
licenseInfoFromFiles - the licenseInfoFromFiles to setInvalidSPDXAnalysisExceptionpublic String getCopyrightText()
public void setCopyrightText(String copyrightText)
copyrightText - the copyrightText to setpublic String getLicenseComments()
@Deprecated public String getLicenseComment()
public void setLicenseComments(String licenseComments)
licenseComments - the licenseComment to set@Deprecated public void setLicenseComment(String licenseComment)
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class SpdxElementpublic boolean equivalent(IRdfModel o)
IRdfModelequivalent in interface IRdfModelequivalent in class SpdxElementpublic boolean equivalent(IRdfModel o, boolean testRelationships)
SpdxElementequivalent in class SpdxElementtestRelationships - If true, test relationshipsprotected AnyLicenseInfo cloneLicenseConcluded()
protected AnyLicenseInfo[] cloneLicenseInfosFromFiles()
public SpdxItem clone()
clone in class SpdxElementpublic SpdxItem clone(Map<String,SpdxElement> clonedElementIds)
SpdxElementclone in class SpdxElementclonedElementIds - element ID's fo all elements which have been clonedCopyright © 2017 Linux Foundation. All Rights Reserved.