Class AbstractExtractedLicenseInfo
- 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
-
- org.spdx.library.model.v2.license.AbstractExtractedLicenseInfo
-
- All Implemented Interfaces:
Comparable<AbstractExtractedLicenseInfo>
- Direct Known Subclasses:
ExternalExtractedLicenseInfo
,ExtractedLicenseInfo
public abstract class AbstractExtractedLicenseInfo extends SimpleLicensingInfo implements Comparable<AbstractExtractedLicenseInfo>
ExtractedLicenseInfo which can be represented as a concrete ExtractedLicenseInfo within the same SPDX document with all properties accessible, or as an ExternalExtractedLicenseInfo which represents a license not included within the SPDX document.- Author:
- Gary O'Neall
-
-
Field Summary
-
Fields inherited from class org.spdx.library.model.v2.ModelObjectV2
LATEST_SPDX_2_VERSION
-
-
Constructor Summary
Constructors Constructor Description AbstractExtractedLicenseInfo(String id)
Create a new ExtractedLicenseInfo using the IDAbstractExtractedLicenseInfo(org.spdx.storage.IModelStore modelStore, String documentUri, String id, org.spdx.core.IModelCopyManager copyManager, boolean create)
Create a new ExtractedLicenseInfo object
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(AbstractExtractedLicenseInfo o)
abstract String
getExtractedText()
String
toString()
-
Methods inherited from class org.spdx.library.model.v2.license.SimpleLicensingInfo
getComment, getLicenseId, getName, getSeeAlso, setComment, setName, setSeeAlso
-
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
-
-
-
-
Constructor Detail
-
AbstractExtractedLicenseInfo
public AbstractExtractedLicenseInfo(String id) throws org.spdx.core.InvalidSPDXAnalysisException
Create a new ExtractedLicenseInfo using the ID- Parameters:
id
- identifier for the license- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
AbstractExtractedLicenseInfo
public AbstractExtractedLicenseInfo(org.spdx.storage.IModelStore modelStore, String documentUri, String id, org.spdx.core.IModelCopyManager copyManager, boolean create) throws org.spdx.core.InvalidSPDXAnalysisException
Create a new ExtractedLicenseInfo object- Parameters:
modelStore
- container which includes the licensedocumentUri
- URI for the SPDX document containing the licenseid
- identifier for the licensecopyManager
- if non-null, allows for copying of any properties set which use other model stores or document URI'screate
- if true, create the license if it does not exist- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in classAnyLicenseInfo
-
getExtractedText
public abstract String getExtractedText() throws org.spdx.core.InvalidSPDXAnalysisException
- Returns:
- the text
- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
compareTo
public int compareTo(AbstractExtractedLicenseInfo o)
- Specified by:
compareTo
in interfaceComparable<AbstractExtractedLicenseInfo>
-
-