Package org.kohsuke.github
Class GHLicense
java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHLicense
The GitHub Preview API's license information.
- Author:
- Duncan Dickinson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe body.protected StringThe body.protected StringThe body.protected BooleanThe featured.The forbidden.protected StringThe body.protected StringThe body.protected StringThe name.protected StringThe name.The permitted.The required.Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals.getBody()Gets body.Gets category.Gets description.Gets forbidden.Gets the html url.Gets implementation.getKey()Gets key.getName()Gets name.Gets permitted.Gets required.getRoot()Deprecated.inthashCode()Hash code.Featured licenses are bold in the new repository drop-down.protected voidpopulate()Fully populate the data by retrieving missing data.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Field Details
-
key
The name. -
name
The name. -
featured
The featured. -
html_url
The body. -
description
The body. -
category
The body. -
implementation
The body. -
body
The body. -
required
The required. -
permitted
The permitted. -
forbidden
The forbidden.
-
-
Constructor Details
-
GHLicense
public GHLicense()
-
-
Method Details
-
getKey
Gets key.- Returns:
- a mnemonic for the license
-
getName
Gets name.- Returns:
- the license name
-
isFeatured
Featured licenses are bold in the new repository drop-down.- Returns:
- True if the license is featured, false otherwise
- Throws:
IOException- the io exception
-
getHtmlUrl
Gets the html url.- Specified by:
getHtmlUrlin classGHObject- Returns:
- the html url
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getDescription
Gets description.- Returns:
- the description
- Throws:
IOException- the io exception
-
getCategory
Gets category.- Returns:
- the category
- Throws:
IOException- the io exception
-
getImplementation
Gets implementation.- Returns:
- the implementation
- Throws:
IOException- the io exception
-
getRequired
Gets required.- Returns:
- the required
- Throws:
IOException- the io exception
-
getPermitted
Gets permitted.- Returns:
- the permitted
- Throws:
IOException- the io exception
-
getForbidden
Gets forbidden.- Returns:
- the forbidden
- Throws:
IOException- the io exception
-
getBody
Gets body.- Returns:
- the body
- Throws:
IOException- the io exception
-
populate
Fully populate the data by retrieving missing data.Depending on the original API call where this object is created, it may not contain everything.
- Throws:
IOException- the io exception
-
equals
Equals. -
hashCode
public int hashCode()Hash code. -
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.