Package org.spdx.library.model
Class SpdxPackageVerificationCode
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.SpdxPackageVerificationCode
public class SpdxPackageVerificationCode extends ModelObject
- Author:
- gary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SpdxPackageVerificationCode()SpdxPackageVerificationCode(String id)SpdxPackageVerificationCode(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 objectCollection<String>getExcludedFileNames()StringgetType()StringgetValue()voidsetValue(String value)Set the value for the verification codeMethods 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, equals, equivalent, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, hashCode, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toString, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Constructor Details
-
SpdxPackageVerificationCode
- Throws:
InvalidSPDXAnalysisException
-
SpdxPackageVerificationCode
- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
SpdxPackageVerificationCode
public SpdxPackageVerificationCode(IModelStore modelStore, String documentUri, String id, @Nullable ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore-documentUri-id-copyManager-create-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-
getValue
- Returns:
- the value of the verification code
- Throws:
InvalidSPDXAnalysisException
-
setValue
Set the value for the verification code- Parameters:
value- verification code value- Throws:
InvalidSPDXAnalysisException
-
getExcludedFileNames
- Returns:
- Collection containing files which have been excluded from the verification code calculation
- Throws:
InvalidSPDXAnalysisException
-
_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
-