Package org.spdx.library.model
Class SpdxNoAssertionElement
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.SpdxElement
org.spdx.library.model.SpdxConstantElement
org.spdx.library.model.SpdxNoAssertionElement
- All Implemented Interfaces:
IndividualUriValue
public class SpdxNoAssertionElement extends SpdxConstantElement
This SPDX element represents no assertion as to an actual SPDX element.
This element should only be used on the right hand side of relationships to represent no assertion
as to what element the subject is actually related to.
This element has no properties and a fixed ID of "NOASSERTION".
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static StringNOASSERTION_ELEMENT_ID -
Constructor Summary
Constructors Constructor Description SpdxNoAssertionElement()Create a None element with default model store and document URISpdxNoAssertionElement(IModelStore modelStore, String documentUri) -
Method Summary
Modifier and Type Method Description Optional<String>getComment()StringgetIndividualURI()Optional<String>getName()StringtoString()Methods inherited from class org.spdx.library.model.SpdxConstantElement
_verify, addAnnotation, addRelationship, equals, getAnnotations, getRelationships, getType, hashCode, removeAnnotation, removeRelationship, setAnnotations, setComment, setName, setRelationshipsMethods inherited from class org.spdx.library.model.SpdxElement
addNameToWarnings, getNamePropertyNameMethods 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, equivalent, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Field Details
-
NOASSERTION_ELEMENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SpdxNoAssertionElement
Create a None element with default model store and document URI- Throws:
InvalidSPDXAnalysisException
-
SpdxNoAssertionElement
public SpdxNoAssertionElement(IModelStore modelStore, String documentUri) throws InvalidSPDXAnalysisException- Parameters:
modelStore- where the model is storeddocumentUri- Unique document URI- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
toString
- Overrides:
toStringin classModelObject
-
getName
- Overrides:
getNamein classSpdxElement- Returns:
- the name
- Throws:
InvalidSPDXAnalysisException
-
getComment
- Overrides:
getCommentin classSpdxElement- Returns:
- the comment
- Throws:
InvalidSPDXAnalysisException
-
getIndividualURI
- Returns:
- a unique identifier for this value. Typically the namespace + the long name
-