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
Modifier and TypeFieldDescriptionprotected String
The body.protected String
The body.protected String
The body.protected Boolean
The featured.The forbidden.protected String
The body.protected String
The body.protected String
The name.protected String
The name.The permitted.The required.protected String
The name.Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals.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.Gets SPDX ID.int
hashCode()
Hash code.Featured licenses are bold in the new repository drop-down.protected void
populate()
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. -
spdxId
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()Create default GHLicense instance
-
-
Method Details
-
getKey
Gets key.- Returns:
- a mnemonic for the license
-
getName
Gets name.- Returns:
- the license name
-
getSpdxId
Gets SPDX ID.- Returns:
- the spdx id
-
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.- 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.
-