Package org.spdx.library.model.pointer
Class CompoundPointer
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.pointer.CompoundPointer
- Direct Known Subclasses:
StartEndPointer
public abstract class CompoundPointer extends ModelObject
A pointing method made up of a pair of pointers that identify a well defined section within a document delimited by a begin and an end.
See http://www.w3.org/2009/pointers and https://www.w3.org/WAI/ER/Pointers/WD-Pointers-in-RDF10-20110427
This is an abstract class of pointers which must be subclassed
- Author:
- Gary O'Neall
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CompoundPointer()
CompoundPointer(String id)
CompoundPointer(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 objectSinglePointer
getStartPointer()
String
getType()
CompoundPointer
setStartPointer(SinglePointer startPointer)
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, toString, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verifyCollection
-
Constructor Details
-
CompoundPointer
- Throws:
InvalidSPDXAnalysisException
-
CompoundPointer
- Parameters:
id
-- Throws:
InvalidSPDXAnalysisException
-
CompoundPointer
public CompoundPointer(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore
-documentUri
-id
-copyManager
-create
-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getStartPointer
- Returns:
- the startPointer, null if not present
- Throws:
InvalidSPDXAnalysisException
-
setStartPointer
public CompoundPointer setStartPointer(SinglePointer startPointer) throws InvalidSPDXAnalysisException- Throws:
InvalidSPDXAnalysisException
-
_verify
Description copied from class:ModelObject
Implementation of the specific verifications for this model object- Specified by:
_verify
in classModelObject
- 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
-
getType
- Specified by:
getType
in classModelObject
- Returns:
- The class name for this object. Class names are defined in the constants file
-