Package org.spdx.library.model.pointer
Class StartEndPointer
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.pointer.CompoundPointer
org.spdx.library.model.pointer.StartEndPointer
- All Implemented Interfaces:
Comparable<StartEndPointer>
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
-
Constructor Summary
Constructors Constructor Description StartEndPointer()
StartEndPointer(String id)
StartEndPointer(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create)
-
Method Summary
Modifier and Type Method Description protected List<String>
_verify(List<String> verifiedIds)
Implementation of the specific verifications for this model objectint
compareTo(StartEndPointer o)
SinglePointer
getEndPointer()
String
getType()
void
setEndPointer(SinglePointer endPointer)
StartEndPointer
setStartPointer(SinglePointer startPointer)
String
toString()
Methods inherited from class org.spdx.library.model.ModelObject
addPropertyValueToCollection, addValueToCollection, clearValueCollection, clearValueCollection, clone, copyFrom, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, enterCriticalSection, equals, equivalent, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, hashCode, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verifyCollection
-
Constructor Details
-
StartEndPointer
- Throws:
InvalidSPDXAnalysisException
-
StartEndPointer
- Parameters:
id
-- Throws:
InvalidSPDXAnalysisException
-
StartEndPointer
public StartEndPointer(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore
-documentUri
-id
-copyManager
-create
-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getType
- Overrides:
getType
in classCompoundPointer
- Returns:
- The class name for this object. Class names are defined in the constants file
-
getEndPointer
- Returns:
- the endPointer, null if not present
- Throws:
InvalidSPDXAnalysisException
-
setEndPointer
- Parameters:
endPointer
- the endPointer to set- Throws:
InvalidSPDXAnalysisException
-
setStartPointer
public StartEndPointer setStartPointer(SinglePointer startPointer) throws InvalidSPDXAnalysisException- Overrides:
setStartPointer
in classCompoundPointer
- Throws:
InvalidSPDXAnalysisException
-
_verify
Description copied from class:ModelObject
Implementation of the specific verifications for this model object- Overrides:
_verify
in classCompoundPointer
- Parameters:
verifiedIds
- list of all Element Id's which have already been verified - prevents infinite recursion- Returns:
- Any verification errors or warnings associated with this object
-
compareTo
- Specified by:
compareTo
in interfaceComparable<StartEndPointer>
-
toString
- Overrides:
toString
in classModelObject
-