Package org.spdx.library.model.license
Class SimpleLicensingInfo
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.AnyLicenseInfo
org.spdx.library.model.license.SimpleLicensingInfo
- Direct Known Subclasses:
AbstractExtractedLicenseInfo,License
public abstract class SimpleLicensingInfo extends AnyLicenseInfo
The SimpleLicenseInfo class includes all resources that represent
simple, atomic, licensing information.
- Author:
- Gary O'Neall
-
Field Summary
-
Method Summary
Modifier and Type Method Description StringgetComment()StringgetLicenseId()StringgetName()Collection<String>getSeeAlso()voidsetComment(String comment)voidsetName(String name)voidsetSeeAlso(Collection<String> seeAlsoUrl)Methods inherited from class org.spdx.library.model.ModelObject
_verify, 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, getType, hashCode, idToIdType, isCollectionMembersAssignableTo, isStrict, leaveCriticalSection, removeProperty, removeProperty, removePropertyValueFromCollection, removePropertyValueFromCollection, replacePropertyValueCollection, setCopyManager, setPropertyValue, setPropertyValue, setStrict, toTypedValue, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verify, verifyCollection
-
Method Details
-
getLicenseId
- Returns:
- the id
-
getName
- Returns:
- the name
- Throws:
SpdxInvalidTypeExceptionInvalidSPDXAnalysisException
-
setName
- Parameters:
name- the name to set- Throws:
InvalidSPDXAnalysisException
-
getComment
- Returns:
- the comments
- Throws:
SpdxInvalidTypeExceptionInvalidSPDXAnalysisException
-
setComment
- Parameters:
comment- the comment to set- Throws:
InvalidSPDXAnalysisException
-
getSeeAlso
- Returns:
- the urls which reference the same license information
- Throws:
SpdxInvalidTypeExceptionInvalidSPDXAnalysisException
-
setSeeAlso
- Parameters:
seeAlsoUrl- the urls which are references to the same license to set- Throws:
InvalidSPDXAnalysisException
-