public class ExternalRef extends RdfModelObject implements Comparable<ExternalRef>
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalRef.ReferenceCategory |
model, modelContainer, node, refreshOnGet, resource| Constructor and Description |
|---|
ExternalRef(ExternalRef.ReferenceCategory referenceCategory,
ReferenceType referenceType,
String referenceLocator,
String comment) |
ExternalRef(IModelContainer modelContainer,
org.apache.jena.graph.Node node) |
| Modifier and Type | Method and Description |
|---|---|
ExternalRef |
clone() |
int |
compareTo(ExternalRef 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
|
org.apache.jena.rdf.model.Resource |
findDuplicateResource(IModelContainer modelContainer,
String uri)
Search the model to see if there is a duplicate resource either based on the
URI or based on other information.
|
String |
getComment() |
void |
getPropertiesFromModel()
Fetch all of the properties from the model and populate the local Java properties
|
ExternalRef.ReferenceCategory |
getReferenceCategory() |
String |
getReferenceLocator() |
ReferenceType |
getReferenceType() |
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 |
setComment(String comment) |
void |
setReferenceCategory(ExternalRef.ReferenceCategory referenceCategory) |
void |
setReferenceLocator(String referenceLocator) |
void |
setReferenceType(ReferenceType referenceType) |
String |
toString() |
List<String> |
verify() |
addPropertyUriValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, addPropertyValue, arraysEquivalent, createResource, createResource, equals, equivalentConsideringNull, findAnnotationPropertyValues, findAnyLicenseInfoPropertyValue, findAnyLicenseInfoPropertyValues, findChecksumPropertyValue, findCreationInfoPropertyValue, 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 ExternalRef(ExternalRef.ReferenceCategory referenceCategory, ReferenceType referenceType, String referenceLocator, String comment)
referenceCategory - Category for the external referencereferenceType - Reference type as defined in the SPDX appendixreferenceLocator - unique string with no spaces necessary to access the packagespecific
information, metadata, or content within the target location. The format of the locator is subject
to constraints defined by the referenceTypepublic ExternalRef(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisException
modelContainer - Container for the RDF modelnode - Node for this external referencesInvalidSPDXAnalysisExceptionpublic boolean equivalent(IRdfModel compare)
IRdfModelequivalent in interface IRdfModelpublic void getPropertiesFromModel()
throws InvalidSPDXAnalysisException
RdfModelObjectgetPropertiesFromModel in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic String getUri(IModelContainer modelContainer) throws InvalidSPDXAnalysisException
RdfModelObjectgetUri in class RdfModelObjectInvalidSPDXAnalysisExceptionpublic 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 int compareTo(ExternalRef o)
compareTo in interface Comparable<ExternalRef>public ExternalRef clone()
public String getComment()
public void setComment(String comment)
public ExternalRef.ReferenceCategory getReferenceCategory()
public void setReferenceCategory(ExternalRef.ReferenceCategory referenceCategory) throws InvalidSPDXAnalysisException
referenceCategory - the referenceCategory to setInvalidSPDXAnalysisExceptionpublic ReferenceType getReferenceType() throws InvalidSPDXAnalysisException
InvalidSPDXAnalysisExceptionpublic void setReferenceType(ReferenceType referenceType) throws InvalidSPDXAnalysisException
referenceType - the referenceType to setInvalidSPDXAnalysisExceptionpublic String getReferenceLocator()
public void setReferenceLocator(String referenceLocator)
referenceLocator - the referenceLocator to setpublic org.apache.jena.rdf.model.Resource findDuplicateResource(IModelContainer modelContainer, String uri) throws InvalidSPDXAnalysisException
RdfModelObjectfindDuplicateResource in class RdfModelObjectInvalidSPDXAnalysisExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.