Class SimpleLicensingInfo
- 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.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
-
Fields inherited from class org.spdx.library.model.v2.ModelObjectV2
LATEST_SPDX_2_VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
String
getLicenseId()
String
getName()
Collection<String>
getSeeAlso()
void
setComment(String comment)
void
setName(String name)
void
setSeeAlso(Collection<String> seeAlsoUrl)
-
Methods inherited from class org.spdx.library.model.v2.license.AnyLicenseInfo
toString
-
Methods inherited from class org.spdx.library.model.v2.ModelObjectV2
_verify, _verify, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createExtractedLicense, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, equals, getAnyLicenseInfoPropertyValue, getDocumentUri, getElementPropertyValue, getId, hashCode, 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, getType, isCollectionMembersAssignableTo, isExternal, isStrict, leaveCriticalSection, removeProperty, removePropertyValueFromCollection, setCopyManager, setIdPrefix, setPropertyValue, setStrict, updateAddPropertyValueToCollection, updateClearValueCollection, updatePropertyValue, updateRemoveProperty, updateRemovePropertyValueFromCollection, verify, verify, verifyCollection
-
-
-
-
Method Detail
-
getLicenseId
public String getLicenseId()
- Returns:
- the license ID without the enclosing namespace
-
getName
public String getName() throws org.spdx.core.InvalidSPDXAnalysisException
- Returns:
- the name
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
setName
public void setName(String name) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
name
- the name to set- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getComment
public String getComment() throws org.spdx.core.InvalidSPDXAnalysisException
- Returns:
- the comments
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
setComment
public void setComment(String comment) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
comment
- the comment to set- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
getSeeAlso
public Collection<String> getSeeAlso() throws org.spdx.core.InvalidSPDXAnalysisException
- Returns:
- the urls which reference the same license information
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
setSeeAlso
public void setSeeAlso(Collection<String> seeAlsoUrl) throws org.spdx.core.InvalidSPDXAnalysisException
- Parameters:
seeAlsoUrl
- the urls which are references to the same license to set- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-