Package org.spdx.library.model
Class SpdxNoneElement
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.SpdxElement
org.spdx.library.model.SpdxConstantElement
org.spdx.library.model.SpdxNoneElement
- All Implemented Interfaces:
IndividualUriValue
public class SpdxNoneElement extends SpdxConstantElement
This SPDX element represents no SPDX element at all.
This element should only be used on the right hand side of relationships to represent no SPDX element
is related to the subject.
This element has no properties and a fixed ID of "NONE".
- Author:
- Gary O'Neall
-
Field Summary
Fields Modifier and Type Field Description static StringNONE_ELEMENT_ID -
Constructor Summary
Constructors Constructor Description SpdxNoneElement()Create a None element with default model store and document URISpdxNoneElement(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
-
NONE_ELEMENT_ID
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SpdxNoneElement
Create a None element with default model store and document URI- Throws:
InvalidSPDXAnalysisException
-
SpdxNoneElement
public SpdxNoneElement(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
-