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(Set<String> verifiedIds, String specVersion)Implementation of the specific verifications for this model objectintcompareTo(StartEndPointer o)SinglePointergetEndPointer()StringgetType()voidsetEndPointer(SinglePointer endPointer)StartEndPointersetStartPointer(SinglePointer startPointer)StringtoString()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, 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:
getTypein 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:
setStartPointerin classCompoundPointer- Throws:
InvalidSPDXAnalysisException
-
_verify
Description copied from class:ModelObjectImplementation of the specific verifications for this model object- Overrides:
_verifyin classCompoundPointer- Parameters:
verifiedIds- list of all Element Id's which have already been verified - prevents infinite recursionspecVersion- Version of the SPDX spec to verify against- Returns:
- Any verification errors or warnings associated with this object
-
compareTo
- Specified by:
compareToin interfaceComparable<StartEndPointer>
-
toString
- Overrides:
toStringin classModelObject
-