public class ExternalDocumentRef extends RdfModelObject implements Comparable<ExternalDocumentRef>
model, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
ExternalDocumentRef(IModelContainer modelContainer,
org.apache.jena.graph.Node node) |
ExternalDocumentRef(SpdxDocument externalDocument,
Checksum checksum,
String externalDocumentId) |
ExternalDocumentRef(String spdxDocumentUri,
Checksum checksum,
String externalDocumentId) |
| Modifier and Type | Method and Description |
|---|---|
ExternalDocumentRef |
clone() |
int |
compareTo(ExternalDocumentRef o) |
boolean |
equivalent(IRdfModel compare)
Returns true if the compare object contains properties which would be equal if they were contained in the same RDF Model
|
Checksum |
getChecksum() |
String |
getExternalDocumentId()
a string containing letters, numbers, “.”, “-” or “+” which uniquely identifies an external document within this document.
|
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
SpdxDocument |
getSpdxDocument() |
String |
getSpdxDocumentNamespace() |
org.apache.jena.rdf.model.Resource |
getType(org.apache.jena.rdf.model.Model model) |
String |
getUri(IModelContainer modelContainer)
Get the URI for this RDF object.
|
void |
populateModel()
Populate the RDF model from the Java properties
|
void |
setChecksum(Checksum checksum) |
void |
setExternalDocumentId(String externalDocumentId) |
void |
setSpdxDocument(SpdxDocument spdxDocument) |
void |
setSpdxDocumentNamespace(String spdxDocumentNamespace) |
List<String> |
verify() |
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equals, equivalentConsideringNull, 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 ExternalDocumentRef(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException
modelContainer - node - InvalidSPDXAnalysisExceptionpublic ExternalDocumentRef(String spdxDocumentUri, Checksum checksum, String externalDocumentId)
spdxDocumentUri - Unique URI for the external SPDX documentchecksum - Sha1 checksum for the external documentpublic ExternalDocumentRef(SpdxDocument externalDocument, Checksum checksum, String externalDocumentId)
externalDocument - SPDX Document being referencedchecksum - Sha1 checksum of the external documentpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic String getUri(IModelContainer modelContainer)
RdfModelObjectgetUri in class RdfModelObjectpublic org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)
getType in class RdfModelObjectpublic void populateModel()
throws InvalidSPDXAnalysisException
RdfModelObjectpopulateModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic Checksum getChecksum() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setChecksum(Checksum checksum) throws InvalidSPDXAnalysisException
checksum - the checksum to setInvalidSPDXAnalysisExceptionpublic String getSpdxDocumentNamespace()
public void setSpdxDocumentNamespace(String spdxDocumentNamespace) throws InvalidSPDXAnalysisException
spdxDocumentNamespace - the spdxDocumentNamespace to setInvalidSPDXAnalysisExceptionpublic SpdxDocument getSpdxDocument()
public void setSpdxDocument(SpdxDocument spdxDocument) throws InvalidSPDXAnalysisException
spdxDocument - the spdxDocument to setInvalidSPDXAnalysisExceptionpublic boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelpublic ExternalDocumentRef clone()
public String getExternalDocumentId()
public void setExternalDocumentId(String externalDocumentId)
externalDocumentId - public int compareTo(ExternalDocumentRef o)
compareTo in interface Comparable<ExternalDocumentRef>Copyright © 2017 Linux Foundation. All Rights Reserved.