Class SpdxNoAssertionLicense

  • All Implemented Interfaces:
    org.spdx.core.IndividualUriValue

    public class SpdxNoAssertionLicense
    extends AnyLicenseInfo
    implements org.spdx.core.IndividualUriValue
    Special class of license to represent no asserted license license in the file or packages
    Author:
    Gary O'Neall
    • Constructor Detail

      • SpdxNoAssertionLicense

        public SpdxNoAssertionLicense()
                               throws org.spdx.core.InvalidSPDXAnalysisException
        Create a new No Assertion license with the default store and default document URI
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • SpdxNoAssertionLicense

        public SpdxNoAssertionLicense​(org.spdx.storage.IModelStore modelStore,
                                      String documentUri)
                               throws org.spdx.core.InvalidSPDXAnalysisException
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
    • Method Detail

      • isExternal

        public boolean isExternal()
        Overrides:
        isExternal in class org.spdx.core.CoreModelObject
      • _verify

        protected List<String> _verify​(Set<String> verifiedIds,
                                       String specVersion)
        Description copied from class: ModelObjectV2
        Implementation of the specific verifications for this model object
        Specified by:
        _verify in class ModelObjectV2
        Parameters:
        verifiedIds - list of all Element Id's which have already been verified - prevents infinite recursion
        specVersion - Version of the SPDX spec to verify against
        Returns:
        Any verification errors or warnings associated with this object
      • getType

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

        public String getIndividualURI()
        Specified by:
        getIndividualURI in interface org.spdx.core.IndividualUriValue