Package org.spdx.library.model.license
Class AbstractExtractedLicenseInfo
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.AnyLicenseInfo
org.spdx.library.model.license.SimpleLicensingInfo
org.spdx.library.model.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
-
Constructor Summary
Constructors Constructor Description AbstractExtractedLicenseInfo(String id)Create a new ExtractedLicenseInfo using the IDAbstractExtractedLicenseInfo(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create)Create a new ExtractedLicenseInfo object -
Method Summary
Modifier and Type Method Description intcompareTo(AbstractExtractedLicenseInfo o)abstract StringgetExtractedText()StringtoString()Methods inherited from class org.spdx.library.model.license.SimpleLicensingInfo
getComment, getLicenseId, getName, getSeeAlso, setComment, setName, setSeeAlsoMethods 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
-
Constructor Details
-
AbstractExtractedLicenseInfo
Create a new ExtractedLicenseInfo using the ID- Parameters:
id-- Throws:
InvalidSPDXAnalysisException
-
AbstractExtractedLicenseInfo
public AbstractExtractedLicenseInfo(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisExceptionCreate 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:
InvalidSPDXAnalysisException
-
-
Method Details
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
getExtractedText
- Returns:
- the text
- Throws:
SpdxInvalidTypeExceptionInvalidSPDXAnalysisException
-
compareTo
- Specified by:
compareToin interfaceComparable<AbstractExtractedLicenseInfo>
-