Package org.spdx.library.model.license
Class WithExceptionOperator
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.AnyLicenseInfo
org.spdx.library.model.license.WithExceptionOperator
public class WithExceptionOperator extends AnyLicenseInfo
A license that has a With exception operator (e.g. GPL-2.0 WITH Autoconf-exception-2.0)
- Author:
- Gary O'Neall
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WithExceptionOperator()WithExceptionOperator(String id)WithExceptionOperator(AnyLicenseInfo license, LicenseException exception)WithExceptionOperator(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) -
Method Summary
Modifier and Type Method Description protected List<String>_verify(Set<String> verifiedIds, String specVersion)Implementation of the specific verifications for this model objectbooleanequals(Object o)LicenseExceptiongetException()AnyLicenseInfogetLicense()StringgetType()inthashCode()voidsetException(LicenseException exception)voidsetLicense(AnyLicenseInfo license)StringtoString()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, 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
-
Constructor Details
-
WithExceptionOperator
- Throws:
InvalidSPDXAnalysisException
-
WithExceptionOperator
- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
WithExceptionOperator
public WithExceptionOperator(IModelStore modelStore, String documentUri, String id, @Nullable ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore-documentUri-id-copyManager- if non-null, allows for copying of any properties set which use other model stores or document URI'screate-- Throws:
InvalidSPDXAnalysisException
-
WithExceptionOperator
public WithExceptionOperator(AnyLicenseInfo license, LicenseException exception) throws InvalidSPDXAnalysisException- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-
getLicense
- Returns:
- the license
- Throws:
InvalidSPDXAnalysisException
-
setLicense
- Parameters:
license- the license to set- Throws:
InvalidSPDXAnalysisException
-
getException
- Returns:
- the exception
- Throws:
InvalidSPDXAnalysisException
-
setException
- Parameters:
exception- the exception to set- Throws:
InvalidSPDXAnalysisException
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
_verify
Description copied from class:ModelObjectImplementation of the specific verifications for this model object- Specified by:
_verifyin classModelObject- 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
-
equals
- Overrides:
equalsin classModelObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelObject
-