Class ConjunctiveLicenseSet


  • public class ConjunctiveLicenseSet
    extends LicenseSet
    A set of licenses where all of the licenses apply
    Author:
    Gary O'Neall
    • Constructor Detail

      • ConjunctiveLicenseSet

        public ConjunctiveLicenseSet()
                              throws org.spdx.core.InvalidSPDXAnalysisException
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • ConjunctiveLicenseSet

        public ConjunctiveLicenseSet​(String id)
                              throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        id - identifier
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • ConjunctiveLicenseSet

        public ConjunctiveLicenseSet​(org.spdx.storage.IModelStore modelStore,
                                     String documentUri,
                                     String id,
                                     @Nullable
                                     org.spdx.core.IModelCopyManager copyManager,
                                     boolean create)
                              throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        modelStore - container which includes the model data
        documentUri - URI for the SPDX document containing the model data
        id - identifier
        copyManager - if non-null, allows for copying of any properties set which use other model stores or document URI's
        create - if true, create the license if it does not exist
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • getFlattenedMembers

        public List<AnyLicenseInfo> getFlattenedMembers()
                                                 throws org.spdx.core.InvalidSPDXAnalysisException
        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:
        org.spdx.core.InvalidSPDXAnalysisException
      • equivalent

        public boolean equivalent​(org.spdx.core.CoreModelObject compare)
                           throws org.spdx.core.InvalidSPDXAnalysisException
        Overrides:
        equivalent in class org.spdx.core.CoreModelObject
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • setsEquivalent

        protected boolean setsEquivalent​(ConjunctiveLicenseSet compare)
                                  throws org.spdx.core.InvalidSPDXAnalysisException
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • getType

        public String getType()
        Specified by:
        getType in class org.spdx.core.CoreModelObject