Class SpdxListedLicense

All Implemented Interfaces:
Cloneable, IRdfModel

public class SpdxListedLicense
extends License
Listed license for SPDX as listed at spdx.org/licenses
Author:
Gary O'Neall
  • Constructor Details

    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, Boolean fsfLibre, String licenseTextHtml, boolean isDeprecated, String deprecatedVersion) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      osiApproved - True if this is an OSI Approved license
      fsfLibre - true if FSF describes the license as free / libre, false if FSF describes the license as not free / libre, null if FSF does not reference the license
      licenseTextHtml - HTML version for the license text
      isDeprecated - True if this license has been designated as deprecated by the SPDX legal team
      deprecatedVersion - License list version when this license was first deprecated (null if not deprecated)
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, String licenseTextHtml) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      osiApproved - True if this is an OSI Approved license
      licenseTextHtml - HTML version for the license text
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved, boolean fsfLibre) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      osiApproved - True if this is an OSI Approvied license
      fsfLibre - True if the license is listed by the Free Software Foundation as free / libre
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, boolean osiApproved) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      osiApproved - True if this is an OSI Approvied license
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(IModelContainer modelContainer, org.apache.jena.graph.Node licenseNode) throws InvalidSPDXAnalysisException
      Constructs an SPDX License from the licenseNode
      Parameters:
      modelContainer - container which includes the license
      licenseNode - RDF graph node representing the SPDX License
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, String licenseHeaderTemplate, boolean osiApproved, boolean fsfLibre, String licenseTextHtml, String licenseHeaderHtml) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      licenseHeaderTemplate - optional template for the standard license header
      osiApproved - True if this is an OSI Approved license
      fsfLibre - True if the license is listed by the Free Software Foundation as free / libre
      licenseTextHtml - HTML version for the license text
      licenseHeaderHtml - HTML version for the standard license header
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String comments, String standardLicenseHeader, String template, String licenseHeaderTemplate, boolean osiApproved, Boolean fsfLibre) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      licenseHeaderTemplate - optional template for the standard license header
      osiApproved - True if this is an OSI Approved license
      fsfLibre - True if the license is listed by the Free Software Foundation as free / libre
      Throws:
      InvalidSPDXAnalysisException
    • SpdxListedLicense

      public SpdxListedLicense​(String name, String id, String text, String[] sourceUrl, String[] sourceUrlDetails, String comments, String standardLicenseHeader, String template, String licenseHeaderTemplate, boolean osiApproved, Boolean fsfLibre) throws InvalidSPDXAnalysisException
      Parameters:
      name - License name
      id - License ID
      text - License text
      sourceUrl - Optional URLs that reference this license
      sourceUrlDetails - Optional URLs that reference this license
      comments - Optional comments
      standardLicenseHeader - Optional license header
      template - Optional template
      licenseHeaderTemplate - optional template for the standard license header
      osiApproved - True if this is an OSI Approved license
      fsfLibre - True if the license is listed by the Free Software Foundation as free / libre
      Throws:
      InvalidSPDXAnalysisException
  • Method Details