Package org.spdx.rdfparser.model.pointer
Class CompoundPointer
java.lang.Object
org.spdx.rdfparser.model.RdfModelObject
org.spdx.rdfparser.model.pointer.CompoundPointer
- Direct Known Subclasses:
StartEndPointer
public abstract class CompoundPointer extends RdfModelObject
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
Fields Modifier and Type Field Description protected SinglePointerstartPointerFields inherited from class org.spdx.rdfparser.model.RdfModelObject
model, modelContainer, node, refreshOnGet, resource -
Constructor Summary
Constructors Constructor Description CompoundPointer(IModelContainer modelContainer, org.apache.jena.graph.Node node)Create a compoundpointer from an existing RDF nodeCompoundPointer(SinglePointer startPointer)Create a compound pointer without an RDF model -
Method Summary
Modifier and Type Method Description booleanequivalent(IRdfModel o)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 propertiesSinglePointergetStartPointer()voidpopulateModel()Populate the RDF model from the Java propertiesvoidsetStartPointer(SinglePointer startPointer)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
-
Constructor Details
-
CompoundPointer
public CompoundPointer(IModelContainer modelContainer, org.apache.jena.graph.Node node) throws InvalidSPDXAnalysisExceptionCreate a compoundpointer from an existing RDF node- Parameters:
modelContainer-node-- Throws:
InvalidSPDXAnalysisException
-
CompoundPointer
Create a compound pointer without an RDF model- Parameters:
startPointer-
-
-
Method Details
-
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
-
verify
- Returns:
- List of validation errors for any non SPDX compliant properties.
-
getStartPointer
- Returns:
- the startPointer
- Throws:
InvalidSPDXAnalysisException
-
setStartPointer
- Parameters:
startPointer- the startPointer to set- Throws:
InvalidSPDXAnalysisException
-
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- Returns:
-