Package org.spdx.html

Class LicenseJSONFile

java.lang.Object
org.spdx.html.AbstractJsonFile
org.spdx.html.LicenseJSONFile

public class LicenseJSONFile
extends AbstractJsonFile
This class holds a JSON details file for a specific license
Author:
Gary O'Neall
  • Constructor Details

    • LicenseJSONFile

      public LicenseJSONFile()
      Create a license JSON file with no license initialized
  • Method Details

    • setLicense

      public void setLicense​(SpdxListedLicense license, boolean deprecated)
      Parameters:
      license -
      deprecated - True if the license ID is deprecated
    • setDeprecated

      public void setDeprecated​(boolean deprecated)
      Parameters:
      deprecated - True if the license ID is deprecated
    • getJsonObject

      protected org.json.simple.JSONObject getJsonObject()
      Specified by:
      getJsonObject in class AbstractJsonFile
      Returns:
      the JsonObject to be written