@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, responseHeaderFields, 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, getResponseHeaderFields, getUpdatedAt, toString
protected 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()
GHObject
public Boolean isFeatured() throws IOException
IOException
public URL getHtmlUrl() throws IOException
GHObject
getHtmlUrl
in class GHObject
IOException
public String getDescription() throws IOException
IOException
public String getCategory() throws IOException
IOException
public String getImplementation() throws IOException
IOException
public List<String> getRequired() throws IOException
IOException
public List<String> getPermitted() throws IOException
IOException
public List<String> getForbidden() throws IOException
IOException
public String getBody() throws IOException
IOException
protected void populate() throws IOException
IOException
Copyright © 2018. All rights reserved.