Package org.spdx.library.model
Class SpdxCreatorInformation
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.SpdxCreatorInformation
public class SpdxCreatorInformation extends ModelObject
- Author:
- gary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SpdxCreatorInformation()SpdxCreatorInformation(String id)SpdxCreatorInformation(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 objectOptional<String>getComment()StringgetCreated()Collection<String>getCreators()Optional<String>getLicenseListVersion()StringgetType()SpdxCreatorInformationsetComment(String comment)SpdxCreatorInformationsetCreated(String created)SpdxCreatorInformationsetLicenseListVersion(String licenseListVersion)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, 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, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Constructor Details
-
SpdxCreatorInformation
- Throws:
InvalidSPDXAnalysisException
-
SpdxCreatorInformation
- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
SpdxCreatorInformation
public SpdxCreatorInformation(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException- Parameters:
modelStore-documentUri-id-create-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
getCreators
- Returns:
- Creators Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person's name.
- Throws:
InvalidSPDXAnalysisException
-
getLicenseListVersion
- Returns:
- An optional field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created.
- Throws:
InvalidSPDXAnalysisException
-
setLicenseListVersion
public SpdxCreatorInformation setLicenseListVersion(String licenseListVersion) throws InvalidSPDXAnalysisException- Parameters:
licenseListVersion- An optional field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created.- Returns:
- this for building more optons
- Throws:
InvalidSPDXAnalysisException
-
getComment
- Returns:
- the comment
- Throws:
InvalidSPDXAnalysisException
-
setComment
- Parameters:
comment-- Returns:
- this for building more optons
- Throws:
InvalidSPDXAnalysisException
-
getCreated
- Returns:
- When the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard.
- Throws:
InvalidSPDXAnalysisException
-
setCreated
- Parameters:
created- When the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard.- Returns:
- this for building more optons
- Throws:
InvalidSPDXAnalysisException
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-
toString
- Overrides:
toStringin classModelObject
-
_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
-