Class DisjunctiveLicenseSet


  • public class DisjunctiveLicenseSet
    extends LicenseSet
    A set of licenses where there is a choice of one of the licenses in the set
    Author:
    Gary O'Neall
    • Constructor Detail

      • DisjunctiveLicenseSet

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

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

        public DisjunctiveLicenseSet​(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

        protected List<AnyLicenseInfo> getFlattenedMembers()
                                                    throws org.spdx.core.InvalidSPDXAnalysisException
        Disjunctive license sets can contain other conjunctive license sets as members. Logically, the members of these "sub-disjunctive license sets" could be direct members and have the same meaning.
        Returns:
        all members "flattening out" disjunctive 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
      • getType

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