@Immutable @Loggable(value=1) public static final class Milestone.Smart extends Object implements Milestone
Milestone.Smart
CLOSED_STATE, OPEN_STATE
Constructor and Description |
---|
Milestone.Smart(Milestone mls)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close it (make sure it's closed).
|
int |
closedIssues()
Get number of closed issues.
|
int |
compareTo(Milestone obj) |
Date |
createdAt()
When this milestone was created.
|
User |
creator()
Get its creator.
|
String |
description()
Get its description.
|
void |
description(String description)
Change its description.
|
Date |
dueOn()
The milestone due date.
|
void |
dueOn(Date dueon)
Change milestone due date.
|
boolean |
isOpen()
Is it open?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
int |
number()
Get its number.
|
void |
open()
Open it (make sure it's open).
|
int |
openIssues()
Get number of open issues.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
Repo |
repo()
Repository we're in.
|
String |
state()
Get its state.
|
void |
state(String state)
Change its state.
|
String |
title()
Get its title.
|
void |
title(String title)
Change its title.
|
URL |
url()
Get its URL.
|
@NotNull(message="user is never NULL") public User creator() 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 milestoneIOException
- 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="title can\'t be NULL") String title) throws IOException
title
- Title of milestoneIOException
- If there is any I/O problem@NotNull(message="description is never NULL") public String description() throws IOException
IOException
- If there is any I/O problempublic void description(@NotNull(message="description can\'t be NULL") String description) throws IOException
description
- Description of milestoneIOException
- 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="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 dueOn() throws IOException
IOException
- If there is any I/O problempublic void dueOn(@NotNull(message="dueon can\'t be NULL") Date dueon) throws IOException
dueon
- New milestone due dateIOException
- If there is any I/O problempublic int openIssues() throws IOException
IOException
- If there is any I/O problempublic int closedIssues() throws IOException
IOException
- If there is any I/O problem@NotNull(message="Repo is never NULL") public Repo repo()
Milestone
public int number()
Milestone
@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 problemCopyright © 2012–2014 jcabi.com. All rights reserved.