Package org.spdx.rdfparser.model.pointer
Class SinglePointer
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.model.pointer.SinglePointer
- All Implemented Interfaces:
Cloneable,Comparable<SinglePointer>,IRdfModel
- Direct Known Subclasses:
ByteOffsetPointer,LineCharPointer
public abstract class SinglePointer extends RdfModelObject implements Comparable<SinglePointer>
A pointing method made up of a unique pointer. This is an abstract single pointer that provides the necessary framework,
but it does not provide any kind of pointer, so more specific subclasses must be used.
See http://www.w3.org/2009/pointers and https://www.w3.org/WAI/ER/Pointers/WD-Pointers-in-RDF10-20110427
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description protected SpdxElementreferenceThe document within which the pointer is applicable or meaningful.Fields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description SinglePointer(IModelContainer modelContainer, org.apache.jena.graph.Node node)Create a SinglePointer from the modelSinglePointer(SpdxElement reference) -
Method Summary
Modifier and Type Method Description SinglePointerclone()protected intcompareReferences(SinglePointer o)booleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelvoidgetPropertiesFromModel()Fetch all of the properties from the model and populate the local Java propertiesSpdxElementgetReference()voidpopulateModel()Populate the RDF model from the Java propertiesvoidsetReference(SpdxElement reference)List<String>verify()Methods inherited from class org.spdx.rdfparser.model.RdfModelObject
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, getType, getUri, 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, setSingleObjectForSameNode
-
Field Details
-
reference
The document within which the pointer is applicable or meaningful.
-
-
Constructor Details
-
SinglePointer
public SinglePointer(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisExceptionCreate a SinglePointer from the model- Parameters:
modelContainer-node-- Throws:
InvalidSPDXAnalysisException
-
SinglePointer
-
-
Method Details
-
verify
-
equivalent
Description copied from interface:IRdfModelReturns true if the compare object contains properties which would be equal if they were contained in the same RDF Model- Specified by:
equivalentin interfaceIRdfModel- Returns:
-
getPropertiesFromModel
Description copied from class:RdfModelObjectFetch all of the properties from the model and populate the local Java properties- Specified by:
getPropertiesFromModelin classRdfModelObject- Throws:
InvalidSPDXAnalysisException
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Specified by:
populateModelin classRdfModelObject- Throws:
InvalidSPDXAnalysisException
-
getReference
- Returns:
- the reference
- Throws:
InvalidSPDXAnalysisException
-
setReference
- Parameters:
reference- the reference to set- Throws:
InvalidSPDXAnalysisException
-
clone
-
compareReferences
-