Package org.spdx.library.model.license
Class ConjunctiveLicenseSet
java.lang.Object
org.spdx.library.model.ModelObject
org.spdx.library.model.license.AnyLicenseInfo
org.spdx.library.model.license.LicenseSet
org.spdx.library.model.license.ConjunctiveLicenseSet
A set of licenses where all of the licenses apply
- Author:
- Gary O'Neall
-
Field Summary
Fields inherited from class org.spdx.library.model.ModelObject
strict -
Constructor Summary
ConstructorsConstructorDescriptionConjunctiveLicenseSet(IModelStore modelStore, String documentUri, String id, ModelCopyManager copyManager, boolean create) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequivalent(ModelObject compare) Conjunctive license sets can contain other conjunctive license sets as members.getType()inthashCode()protected booleansetsEquivalent(ConjunctiveLicenseSet compare) toString()Methods inherited from class org.spdx.library.model.license.LicenseSet
_verify, addMember, getMembers, removeMember, setMembersMethods inherited from class org.spdx.library.model.ModelObject
addPropertyValueToCollection, addValueToCollection, clearValueCollection, clearValueCollection, clone, copyFrom, createAnnotation, createByteOffsetPointer, createChecksum, createConjunctiveLicenseSet, createCreationInfo, createCrossRef, createDisjunctiveLicenseSet, createExternalDocumentRef, createExternalRef, createExtractedLicense, createLineCharPointer, createPackage, createPackageVerificationCode, createRelationship, createSpdxFile, createSpdxSnippet, createStartEndPointer, enterCriticalSection, equivalent, getAnyLicenseInfoPropertyValue, getBooleanPropertyValue, getCopyManager, getDocumentUri, getElementPropertyValue, getEnumPropertyValue, getId, getIntegerPropertyValue, getModelStore, getObjectPropertyValue, getObjectPropertyValue, getObjectPropertyValueCollection, getObjectPropertyValueSet, getPropertyValueNames, getStringCollection, getStringPropertyValue, 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
-
ConjunctiveLicenseSet
- Throws:
InvalidSPDXAnalysisException
-
ConjunctiveLicenseSet
- Throws:
InvalidSPDXAnalysisException
-
ConjunctiveLicenseSet
public ConjunctiveLicenseSet(IModelStore modelStore, String documentUri, String id, @Nullable ModelCopyManager copyManager, boolean create) throws InvalidSPDXAnalysisException - Parameters:
modelStore-documentUri-id-copyManager-create-- Throws:
InvalidSPDXAnalysisException
-
-
Method Details
-
toString
- Specified by:
toStringin classAnyLicenseInfo
-
getFlattenedMembers
Conjunctive license sets can contain other conjunctive license sets as members. Logically, the members of these "sub-conjunctive license sets" could be direct members and have the same meaning.- Returns:
- all members "flattening out" conjunctive license sets which are members of this set
- Throws:
SpdxInvalidTypeExceptionInvalidSPDXAnalysisException
-
hashCode
public int hashCode()- Overrides:
hashCodein classModelObject
-
equals
- Overrides:
equalsin classModelObject
-
equivalent
- Overrides:
equivalentin classModelObject- Returns:
- true if all the properties have the same or equivalent values
- Throws:
InvalidSPDXAnalysisException
-
setsEquivalent
- Throws:
InvalidSPDXAnalysisException
-
getType
- Specified by:
getTypein classModelObject- Returns:
- The class name for this object. Class names are defined in the constants file
-