@Immutable @Loggable(value=1) public static final class Issue.Smart extends Object implements Issue
Issue.Smart
CLOSED_STATE, OPEN_STATE
Constructor and Description |
---|
Issue.Smart(Issue iss)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(String login)
Assign this issue to another user.
|
User |
assignee()
Get its assignee.
|
User |
author()
Get its author.
|
String |
body()
Get its title.
|
void |
body(String text)
Change its body.
|
void |
close()
Close it (make sure it's closed).
|
Comments |
comments()
Get all comments of the issue.
|
int |
compareTo(Issue obj) |
Date |
createdAt()
When this issue was created.
|
Iterable<Event> |
events()
Get all events of the issue.
|
boolean |
exists()
Is this issue exists in Github?
|
URL |
htmlUrl()
Get its HTML URL.
|
boolean |
isOpen()
Is it open?
|
boolean |
isPull()
Is it a pull requests?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
IssueLabels |
labels()
Get all labels of the issue.
|
Event |
latestEvent(String type)
Get the latest event of a given type.
|
int |
number()
Get its number.
|
void |
open()
Open it (make sure it's open).
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Pull |
pull()
Get pull request.
|
Repo |
repo()
Repository we're in.
|
IssueLabels |
roLabels()
Get read-only labels.
|
String |
state()
Get its state.
|
void |
state(String state)
Change its state.
|
String |
title()
Get its body.
|
void |
title(String text)
Change its state.
|
Date |
updatedAt()
When this issue was updated.
|
URL |
url()
Get its URL.
|
@NotNull(message="user is never NULL") public User author() throws IOException
IOException
- If there is any I/O problempublic boolean isOpen() throws IOException
IOException
- If there is any I/O problempublic void open() throws IOException
IOException
- If there is any I/O problempublic void close() throws IOException
IOException
- If there is any I/O problem@NotNull(message="state is never NULL") public String state() throws IOException
IOException
- If there is any I/O problempublic void state(@NotNull(message="state can\'t be NULL") String state) throws IOException
state
- State of issueIOException
- If there is any I/O problem@NotNull(message="title is never NULL") public String title() throws IOException
IOException
- If there is any I/O problempublic void title(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Text of issueIOException
- If there is any I/O problem@NotNull(message="body is never NULL") public String body() throws IOException
IOException
- If there is any I/O problempublic void body(@NotNull(message="text can\'t be NULL") String text) throws IOException
text
- Body of issueIOException
- If there is any I/O problem@NotNull(message="user is never NULL") public User assignee() throws IOException
IOException
- If there is any I/O problempublic void assign(@NotNull(message="login can\'t be NULL") String login) throws IOException
login
- Login of the user to assign toIOException
- If there is any I/O problem@NotNull(message="URL is never NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="URL is never NULL") public URL htmlUrl() throws IOException
IOException
- If there is any I/O problem@NotNull(message="date is never NULL") public Date createdAt() throws IOException
IOException
- If there is any I/O problem@NotNull(message="date is never NULL") public Date updatedAt() throws IOException
IOException
- If there is any I/O problempublic boolean isPull() throws IOException
IOException
- If there is any I/O problem@NotNull(message="pull is never NULL") public Pull pull() throws IOException
IOException
- If there is any I/O problem@NotNull(message="event is never NULL") public Event latestEvent(@NotNull(message="type can\'t be NULL") String type) throws IOException
type
- Type of eventIOException
- If there is any I/O problem@NotNull(message="collection is never NULL") public IssueLabels roLabels() throws IOException
IOException
- If there is any I/O problem@NotNull(message="repository is never NULL") public Repo repo()
Issue
public int number()
Issue
@NotNull(message="comments is never NULL") public Comments comments()
Issue
comments
in interface Issue
@NotNull(message="labels is never NULL") public IssueLabels labels()
Issue
labels
in interface Issue
@NotNull(message="Iterable of events is never NULL") public Iterable<Event> events() throws IOException
Issue
events
in interface Issue
IOException
- If there is any I/O problem@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic void patch(@NotNull(message="json can\'t be NULL") javax.json.JsonObject json) throws IOException
JsonPatchable
patch
in interface JsonPatchable
json
- JSON objectIOException
- If there is any I/O problempublic int compareTo(@NotNull(message="obj can\'t be NULL") Issue obj)
compareTo
in interface Comparable<Issue>
public boolean exists() throws IOException
Issue
exists
in interface Issue
IOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.