@Immutable @Loggable(value=1) public static final class Pull.Smart extends Object implements Pull
Pull.Smart| Constructor and Description | 
|---|
Pull.Smart(Pull pll)
Public ctor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
body()
Get its title. 
 | 
void | 
body(String text)
Change its body. 
 | 
Date | 
closedAt()
When this pull request was closed. 
 | 
PullComments | 
comments()
Get Pull Comments. 
 | 
int | 
commentsCount()
Get comments count. 
 | 
Iterable<Commit> | 
commits()
Get all commits of the pull request. 
 | 
int | 
compareTo(Pull obj)  | 
Date | 
createdAt()
When this pull request was created. 
 | 
Iterable<javax.json.JsonObject> | 
files()
List all files of the pull request. 
 | 
URL | 
htmlUrl()
Get its HTML URL. 
 | 
boolean | 
isOpen()
Is it open? 
 | 
Issue | 
issue()
Get an issue where the pull request is submitted. 
 | 
javax.json.JsonObject | 
json()
Describe it in a JSON object. 
 | 
void | 
merge(String msg)
Merge it. 
 | 
Date | 
mergedAt()
When this pull request was merged. 
 | 
int | 
number()
Get its number. 
 | 
void | 
patch(javax.json.JsonObject json)
Patch using this JSON object. 
 | 
Repo | 
repo()
Pull we're in. 
 | 
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 pull request was updated. 
 | 
URL | 
url()
Get its URL. 
 | 
public boolean isOpen()
               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 pull requestIOException - If there is any I/O problem@NotNull(message="title can\'t be 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 pull requestIOException - 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 pull requestIOException - 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 shouldn\'t NULL") public Date createdAt() throws IOException
IOException - If there is any I/O problem@NotNull(message="date is not NULL") public Date updatedAt() throws IOException
IOException - If there is any I/O problem@NotNull(message="date can\'t NULL") public Date closedAt() throws IOException
IOException - If there is any I/O problem@NotNull(message="date is never NULL") public Date mergedAt() throws IOException
IOException - If there is any I/O problem@NotNull(message="issue is never NULL") public Issue issue()
public int commentsCount()
                  throws IOException
IOException - If there is any I/O problem@NotNull(message="repo is never NULL") public Repo repo()
Pullpublic int number()
Pull@NotNull(message="Iterable of commits is never NULL") public Iterable<Commit> commits() throws IOException
Pullcommits in interface PullIOException - If there is any I/O problem@NotNull(message="Iterable if json objects is never NULL") public Iterable<javax.json.JsonObject> files() throws IOException
Pullfiles in interface PullIOException - If there is any I/O problempublic void merge(@NotNull(message="msg can\'t be NULL") String msg) throws IOException
Pullmerge in interface Pullmsg - Commit messageIOException - If there is any I/O problem@NotNull(message="comments is never NULL") public PullComments comments() throws IOException
Pullcomments in interface PullIOException - If there is any I/O problem@NotNull(message="JSON is never NULL") public javax.json.JsonObject json() throws IOException
JsonReadablejson in interface JsonReadableIOException - If there is any I/O problempublic void patch(@NotNull(message="json can\'t be NULL") javax.json.JsonObject json) throws IOException
JsonPatchablepatch in interface JsonPatchablejson - JSON objectIOException - If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.