Klasse GHLicense

java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.repositories.GHLicense
Alle implementierten Schnittstellen:
HttpRequestInterface, JSONHelper

public class GHLicense extends GHBase
This class represents a GitHub license. It provides methods for fetching data about the license such as its name, SPDX ID, key, URL, and node ID.
  • Konstruktordetails

    • GHLicense

      public GHLicense(org.json.JSONObject jsonObject)
      Constructs a new GHLicense instance with the provided JSON object.
      Parameter:
      jsonObject - the JSON object containing the license data
  • Methodendetails

    • toJSONObject

      public org.json.JSONObject toJSONObject()
      Beschreibung aus Klasse kopiert: GHBase
      Returns a new JSONObject.
      Setzt außer Kraft:
      toJSONObject in Klasse GHBase
      Gibt zurück:
      a new JSONObject
    • getUrl

      public String getUrl()
      Returns the URL of the license.
      Gibt zurück:
      the URL of the license
    • getName

      public String getName()
      Returns the name of the license.
      Gibt zurück:
      the name of the license
    • getKey

      public String getKey()
      Returns the key of the license.
      Gibt zurück:
      the key of the license
    • getNodeId

      public String getNodeId()
      Returns the node ID of the license.
      Gibt zurück:
      the node ID of the license
    • getSpdxId

      public String getSpdxId()
      Returns the SPDX ID of the license.
      Gibt zurück:
      the SPDX ID of the license