Class SimpleLicensingInfo

  • Direct Known Subclasses:
    AbstractExtractedLicenseInfo, License

    public abstract class SimpleLicensingInfo
    extends AnyLicenseInfo
    The SimpleLicenseInfo class includes all resources that represent simple, atomic, licensing information.
    Author:
    Gary O'Neall
    • Method Detail

      • getLicenseId

        public String getLicenseId()
        Returns:
        the license ID without the enclosing namespace
      • getName

        public String getName()
                       throws org.spdx.core.InvalidSPDXAnalysisException
        Returns:
        the name
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • setName

        public void setName​(String name)
                     throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        name - the name to set
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • getComment

        public String getComment()
                          throws org.spdx.core.InvalidSPDXAnalysisException
        Returns:
        the comments
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • setComment

        public void setComment​(String comment)
                        throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        comment - the comment to set
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • getSeeAlso

        public Collection<String> getSeeAlso()
                                      throws org.spdx.core.InvalidSPDXAnalysisException
        Returns:
        the urls which reference the same license information
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException
      • setSeeAlso

        public void setSeeAlso​(Collection<String> seeAlsoUrl)
                        throws org.spdx.core.InvalidSPDXAnalysisException
        Parameters:
        seeAlsoUrl - the urls which are references to the same license to set
        Throws:
        org.spdx.core.InvalidSPDXAnalysisException