Package org.kohsuke.github
Class GHLabel
- java.lang.Object
-
- org.kohsuke.github.GHLabel
-
- Direct Known Subclasses:
GHIssue.Label
public class GHLabel extends Object
The type GHLabel.- Author:
- Kohsuke Kawaguchi
- See Also:
GHIssue#getLabels(),GHRepository#listLabels()
-
-
Constructor Summary
Constructors Constructor Description GHLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()Delete.booleanequals(Object o)StringgetColor()Color code without leading '#', such as 'f29513'StringgetDescription()Deprecated.StringgetName()Gets name.StringgetUrl()Gets url.inthashCode()voidsetColor(String newColor)Sets color.voidsetDescription(String newDescription)Deprecated.
-
-
-
Method Detail
-
getUrl
public String getUrl()
Gets url.- Returns:
- the url
-
getName
public String getName()
Gets name.- Returns:
- the name
-
getColor
public String getColor()
Color code without leading '#', such as 'f29513'- Returns:
- the color
-
getDescription
@Preview @Deprecated public String getDescription()
Deprecated.Purpose of Label- Returns:
- the description
-
delete
public void delete() throws IOExceptionDelete.- Throws:
IOException- the io exception
-
setColor
public void setColor(String newColor) throws IOException
Sets color.- Parameters:
newColor- 6-letter hex color code, like "f29513"- Throws:
IOException- the io exception
-
setDescription
@Preview @Deprecated public void setDescription(String newDescription) throws IOException
Deprecated.Sets description.- Parameters:
newDescription- Description of label- Throws:
IOException- the io exception
-
-