Package org.spdx.rdfparser.model.pointer
Class StartEndPointer
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.model.pointer.CompoundPointer
org.spdx.rdfparser.model.pointer.StartEndPointer
- All Implemented Interfaces:
Cloneable,Comparable<StartEndPointer>,IRdfModel
public class StartEndPointer extends CompoundPointer implements Comparable<StartEndPointer>
A compound pointer pointing out parts of a document by means of a range delimited by a pair of single pointers that define the start point and the end point.
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 inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description StartEndPointer(IModelContainer modelContainer, org.apache.jena.graph.Node node)Create a StartEndPointer from an existing RDF nodeStartEndPointer(SinglePointer startPointer, SinglePointer endPointer) -
Method Summary
Modifier and Type Method Description StartEndPointerclone()intcompareTo(StartEndPointer o)booleanequivalent(IRdfModel compare)Returns true if the compare object contains properties which would be equal if they were contained in the same RDF ModelSinglePointergetEndPointer()voidgetPropertiesFromModel()Fetch all of the properties from the model and populate the local Java propertiesorg.apache.jena.rdf.model.ResourcegetType(org.apache.jena.rdf.model.Model model)StringgetUri(IModelContainer modelContainer)Get the URI for this RDF object.voidpopulateModel()Populate the RDF model from the Java propertiesvoidsetEndPointer(SinglePointer endPointer)StringtoString()List<String>verify()Methods inherited from class org.spdx.rdfparser.model.pointer.CompoundPointer
getStartPointer, setStartPointerMethods 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, findMultipleCrossRefPropertyValues, 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, SetPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues, setSingleObjectForSameNode
-
Constructor Details
-
StartEndPointer
public StartEndPointer(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisExceptionCreate a StartEndPointer from an existing RDF node- Parameters:
modelContainer-node-- Throws:
InvalidSPDXAnalysisException
-
StartEndPointer
-
-
Method Details
-
verify
- Specified by:
verifyin interfaceIRdfModel- Overrides:
verifyin classCompoundPointer- Returns:
- List of validation errors for any non SPDX compliant properties.
-
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- Overrides:
equivalentin classCompoundPointer- Returns:
-
getPropertiesFromModel
Description copied from class:RdfModelObjectFetch all of the properties from the model and populate the local Java properties- Overrides:
getPropertiesFromModelin classCompoundPointer- Throws:
InvalidSPDXAnalysisException
-
getUri
Description copied from class:RdfModelObjectGet the URI for this RDF object. Null if this is for an anonomous node.- Specified by:
getUriin classRdfModelObject- Returns:
- Throws:
InvalidSPDXAnalysisException
-
getType
public org.apache.jena.rdf.model.Resource getType(org.apache.jena.rdf.model.Model model)- Specified by:
getTypein classRdfModelObject- Returns:
- the RDF class name for the object
-
populateModel
Description copied from class:RdfModelObjectPopulate the RDF model from the Java properties- Overrides:
populateModelin classCompoundPointer- Throws:
InvalidSPDXAnalysisException
-
getEndPointer
- Returns:
- the endPointer
- Throws:
InvalidSPDXAnalysisException
-
setEndPointer
- Parameters:
endPointer- the endPointer to set- Throws:
InvalidSPDXAnalysisException
-
clone
-
compareTo
- Specified by:
compareToin interfaceComparable<StartEndPointer>
-
toString
-