@Preview @Deprecated public class GHLicense extends GHObject
WARNING: This uses a PREVIEW API - subject to change.
GitHub.getLicense(String),
GHRepository.getLicense(),
https://developer.github.com/v3/licenses/| Modifier and Type | Field and Description |
|---|---|
protected String |
body
Deprecated.
|
protected String |
category
Deprecated.
|
protected String |
description
Deprecated.
|
protected Boolean |
featured
Deprecated.
|
protected List<String> |
forbidden
Deprecated.
|
protected String |
html_url
Deprecated.
|
protected String |
implementation
Deprecated.
|
protected String |
key
Deprecated.
|
protected String |
name
Deprecated.
|
protected List<String> |
permitted
Deprecated.
|
protected List<String> |
required
Deprecated.
|
created_at, id, updated_at, url| Constructor and Description |
|---|
GHLicense()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Deprecated.
|
String |
getBody()
Deprecated.
|
String |
getCategory()
Deprecated.
|
String |
getDescription()
Deprecated.
|
List<String> |
getForbidden()
Deprecated.
|
URL |
getHtmlUrl()
Deprecated.
URL of this object for humans, which renders some HTML.
|
String |
getImplementation()
Deprecated.
|
String |
getKey()
Deprecated.
|
String |
getName()
Deprecated.
|
List<String> |
getPermitted()
Deprecated.
|
List<String> |
getRequired()
Deprecated.
|
URL |
getUrl()
Deprecated.
API URL of this object.
|
int |
hashCode()
Deprecated.
|
Boolean |
isFeatured()
Deprecated.
Featured licenses are bold in the new repository drop-down
|
protected void |
populate()
Deprecated.
Fully populate the data by retrieving missing data.
|
getCreatedAt, getId, 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
IOExceptionpublic URL getHtmlUrl() throws IOException
GHObjectgetHtmlUrl in class GHObjectIOExceptionpublic String getDescription() throws IOException
IOExceptionpublic String getCategory() throws IOException
IOExceptionpublic String getImplementation() throws IOException
IOExceptionpublic List<String> getRequired() throws IOException
IOExceptionpublic List<String> getPermitted() throws IOException
IOExceptionpublic List<String> getForbidden() throws IOException
IOExceptionpublic String getBody() throws IOException
IOExceptionprotected void populate()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.