Class AnyLicenseInfo
- java.lang.Object
-
- org.spdx.core.CoreModelObject
-
- org.spdx.library.model.v2.ModelObjectV2
-
- org.spdx.library.model.v2.license.AnyLicenseInfo
-
- Direct Known Subclasses:
LicenseSet
,OrLaterOperator
,SimpleLicensingInfo
,SpdxNoAssertionLicense
,SpdxNoneLicense
,WithExceptionOperator
public abstract class AnyLicenseInfo extends ModelObjectV2
This abstract class represents several ways of describing licensing information. License info can be described as a set of conjunctive licenses (where all licenses terms must apply), a set of disjunctive licenses (where there is a choice of one license among the set described) or a specific license. The specific licenses are of a SimpleLicensingInfoType- 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 AnyLicenseInfo()
Create a new Model Object using an Anonymous ID with the defualt store and default document URIAnyLicenseInfo(String id)
Open or create a model object with the default store and default document URI
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
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
-
-
-
-
Constructor Detail
-
AnyLicenseInfo
public AnyLicenseInfo() throws org.spdx.core.InvalidSPDXAnalysisException
Create a new Model Object using an Anonymous ID with the defualt store and default document URI- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
AnyLicenseInfo
public AnyLicenseInfo(String id) throws org.spdx.core.InvalidSPDXAnalysisException
Open or create a model object with the default store and default document URI- Parameters:
id
- ID for this object - must be unique within the SPDX document- Throws:
org.spdx.core.InvalidSPDXAnalysisException
-
-
Method Detail
-
toString
public abstract String toString()
- Overrides:
toString
in classModelObjectV2
-
-