Class 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
    • 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