Klasse GHLicense
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.repositories.GHLicense
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
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.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHLicense(org.json.JSONObject jsonObject) Constructs a new GHLicense instance with the provided JSON object. -
Methodenübersicht
Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrlVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
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:GHBaseReturns a new JSONObject.- Setzt außer Kraft:
toJSONObjectin KlasseGHBase- Gibt zurück:
- a new JSONObject
-
getUrl
Returns the URL of the license.- Gibt zurück:
- the URL of the license
-
getName
Returns the name of the license.- Gibt zurück:
- the name of the license
-
getKey
Returns the key of the license.- Gibt zurück:
- the key of the license
-
getNodeId
Returns the node ID of the license.- Gibt zurück:
- the node ID of the license
-
getSpdxId
Returns the SPDX ID of the license.- Gibt zurück:
- the SPDX ID of the license
-