public class GHLicense extends GHObject
GitHub#getLicense(String),
GHRepository#getLicense(),
https://developer.github.com/v3/licenses/| Modifier and Type | Field and Description |
|---|---|
protected String |
body |
protected String |
category |
protected String |
description |
protected Boolean |
featured |
protected List<String> |
forbidden |
protected String |
html_url |
protected String |
implementation |
protected String |
key |
protected String |
name |
protected List<String> |
permitted |
protected List<String> |
required |
created_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHLicense() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getBody()
Gets body.
|
String |
getCategory()
Gets category.
|
String |
getDescription()
Gets description.
|
List<String> |
getForbidden()
Gets forbidden.
|
URL |
getHtmlUrl()
Gets html url.
|
String |
getImplementation()
Gets implementation.
|
String |
getKey()
Gets key.
|
String |
getName()
Gets name.
|
List<String> |
getPermitted()
Gets permitted.
|
List<String> |
getRequired()
Gets required.
|
URL |
getUrl()
Gets url.
|
int |
hashCode() |
Boolean |
isFeatured()
Featured licenses are bold in the new repository drop-down
|
protected void |
populate()
Fully populate the data by retrieving missing data.
|
getCreatedAt, getId, getResponseHeaderFields, getUpdatedAt, toStringprotected String key
protected String name
protected Boolean featured
protected String html_url
protected String description
protected String category
protected String implementation
protected String body
public String getKey()
public String getName()
@WithBridgeMethods(value=java.lang.String.class, adapterMethod="urlToString") public URL getUrl()
GHObjectpublic Boolean isFeatured() throws IOException
IOException - the io exceptionpublic URL getHtmlUrl() throws IOException
GHObjectgetHtmlUrl in class GHObjectIOException - on errorpublic String getDescription() throws IOException
IOException - the io exceptionpublic String getCategory() throws IOException
IOException - the io exceptionpublic String getImplementation() throws IOException
IOException - the io exceptionpublic List<String> getRequired() throws IOException
IOException - the io exceptionpublic List<String> getPermitted() throws IOException
IOException - the io exceptionpublic List<String> getForbidden() throws IOException
IOException - the io exceptionpublic String getBody() throws IOException
IOException - the io exceptionprotected void populate()
throws IOException
Depending on the original API call where this object is created, it may not contain everything.
IOException - the io exceptionCopyright © 2020. All rights reserved.