Class ProcessedDeclaredLicense

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<String> getAllLicenses() The list of all mapped and unmapped licenses.
      final SpdxExpression getSpdxExpression() The resulting SPDX expression, or null if no license could be mapped.
      final Map<String, SpdxExpression> getMapped() A map from the original declared license strings to the SPDX expressions they were mapped to.
      final Set<String> getUnmapped() Declared licenses that could not be mapped to an SPDX expression.
      final Set<SpdxSingleLicenseExpression> decompose() Decompose the spdxExpression or return an empty string if it is null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessedDeclaredLicense

        ProcessedDeclaredLicense(SpdxExpression spdxExpression, Map<String, SpdxExpression> mapped, Set<String> unmapped)
    • Method Detail

      • getSpdxExpression

         final SpdxExpression getSpdxExpression()

        The resulting SPDX expression, or null if no license could be mapped.

      • getMapped

         final Map<String, SpdxExpression> getMapped()

        A map from the original declared license strings to the SPDX expressions they were mapped to. If the original declared license string and the processed declared license are identical they are not contained in this map.

      • getUnmapped

         final Set<String> getUnmapped()

        Declared licenses that could not be mapped to an SPDX expression.

      • decompose

         final Set<SpdxSingleLicenseExpression> decompose()

        Decompose the spdxExpression or return an empty string if it is null.