Class SpdxNoneLicense
- java.lang.Object
-
- org.spdx.core.CoreModelObject
-
- org.spdx.library.model.v2.ModelObjectV2
-
- org.spdx.library.model.v2.license.AnyLicenseInfo
-
- org.spdx.library.model.v2.license.SpdxNoneLicense
-
- All Implemented Interfaces:
org.spdx.core.IndividualUriValue
public class SpdxNoneLicense extends AnyLicenseInfo implements org.spdx.core.IndividualUriValue
A special license meaning that no license was found- Author:
- Gary O'Neall
-
-
Field Summary
-
Fields inherited from class org.spdx.library.model.v2.ModelObjectV2
LATEST_SPDX_2_VERSION
-
-
Constructor Summary
Constructors Constructor Description SpdxNoneLicense()
Create a new NoneLicense with the default store and default document URISpdxNoneLicense(org.spdx.storage.IModelStore modelStore, String documentUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
_verify(Set<String> verifiedIds, String specVersion)
Implementation of the specific verifications for this model objectboolean
equals(Object comp)
String
getIndividualURI()
String
getType()
int
hashCode()
boolean
isExternal()
String
toString()
-
Methods inherited from class org.spdx.library.model.v2.ModelObjectV2
_verify, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createExtractedLicense, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, getAnyLicenseInfoPropertyValue, getDocumentUri, getElementPropertyValue, getId, isEquivalentToNull, isNoAssertion, isRelatedElement, toTypedValue, verify
-
Methods inherited from class org.spdx.core.CoreModelObject
addPropertyValueToCollection, clearValueCollection, clone, copyFrom, enterCriticalSection, equivalent, equivalent, getBooleanPropertyValue, getCopyManager, getDoublePropertyValue, getEnumPropertyValue, getIdPrefix, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getObjectUri, getPropertyValueDescriptors, getSpecVersion, getStringCollection, getStringPropertyValue, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removePropertyValueFromCollection, setCopyManager, setIdPrefix, setPropertyValue, setStrict, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verifyCollection
-
-
-
-
Constructor Detail
-
SpdxNoneLicense
public SpdxNoneLicense() throws org.spdx.core.InvalidSPDXAnalysisException
Create a new NoneLicense with the default store and default document URI- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
SpdxNoneLicense
public SpdxNoneLicense(org.spdx.storage.IModelStore modelStore, String documentUri) throws org.spdx.core.InvalidSPDXAnalysisException
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-
Method Detail
-
isExternal
public boolean isExternal()
- Overrides:
isExternal
in classorg.spdx.core.CoreModelObject
-
toString
public String toString()
- Specified by:
toString
in classAnyLicenseInfo
-
equals
public boolean equals(Object comp)
- Overrides:
equals
in classModelObjectV2
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classModelObjectV2
-
_verify
protected List<String> _verify(Set<String> verifiedIds, String specVersion)
Description copied from class:ModelObjectV2
Implementation of the specific verifications for this model object- Specified by:
_verify
in classModelObjectV2
- 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
-
getType
public String getType()
- Specified by:
getType
in classorg.spdx.core.CoreModelObject
-
getIndividualURI
public String getIndividualURI()
- Specified by:
getIndividualURI
in interfaceorg.spdx.core.IndividualUriValue
-
-