@Immutable @Loggable(value=1) public static final class Release.Smart extends Object implements Release
Release.Smart
Constructor and Description |
---|
Release.Smart(Release original)
Public CTOR.
|
Modifier and Type | Method and Description |
---|---|
ReleaseAssets |
assets()
Get all release assets of this release.
|
URL |
assetsUrl()
Get release assets url.
|
String |
body()
Get release body.
|
void |
body(String text)
Change its body.
|
String |
commitish()
Get release target commitish.
|
void |
commitish(String text)
Change its target commitish.
|
Date |
createdAt()
Get release creation date.
|
void |
delete()
Deletes a release.
|
boolean |
draft()
Is release draft.
|
void |
draft(boolean draft)
Change its status.
|
boolean |
hasName()
Does this release have a name?
|
URL |
htmlUrl()
Get release html url.
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
String |
name()
Get release name.
|
void |
name(String text)
Change its name.
|
int |
number()
Release id.
|
void |
patch(javax.json.JsonObject json)
Patch using this JSON object.
|
boolean |
prerelease()
Is it prerelease.
|
void |
prerelease(boolean pre)
Change its prerelease.
|
Date |
publishedAt()
Get release publication date.
|
Repo |
repo()
Owner of them.
|
String |
tag()
Get release tag name.
|
void |
tag(String text)
Change its tag name.
|
URL |
uploadUrl()
Get release upload url.
|
URL |
url()
Get release url.
|
@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 problem@NotNull(message="repo is never NULL") public Repo repo()
Release
public int number()
Release
@NotNull(message="assets is never NULL") public ReleaseAssets assets()
Release
assets
in interface Release
@NotNull(message="URL cannot be NULL") public URL url() throws IOException
IOException
- If there is any I/O problem@NotNull(message="URL cannot possibly be NULL") public URL htmlUrl() throws IOException
IOException
- If there is any I/O problem@NotNull(message="URL isn\'t ever NULL") public URL assetsUrl() throws IOException
IOException
- If there is any I/O problem@NotNull(message="URL is never NULL") public URL uploadUrl() throws IOException
IOException
- If there is any I/O problem@NotNull(message="tag is never NULL") public String tag() throws IOException
IOException
- If there is any I/O problempublic void tag(@NotNull(message="text cannot be NULL") String text) throws IOException
text
- Tag nameIOException
- If there is any I/O problem@NotNull(message="commitish can\'t be NULL") public String commitish() throws IOException
IOException
- If there is any I/O problempublic void commitish(@NotNull(message="text shouldn\'t be NULL") String text) throws IOException
text
- Target commitish.IOException
- If there is any I/O problempublic boolean hasName() throws IOException
IOException
- If there is any I/O problem@NotNull(message="name is never NULL") public String name() throws IOException
hasName()
first.IOException
- If there is any I/O problempublic void name(@NotNull(message="text should not be NULL") String text) throws IOException
text
- Name of release.IOException
- 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
- Text describing the contents of the tagIOException
- 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 publishedAt() throws IOException
IOException
- If there is any I/O problempublic boolean draft() throws IOException
IOException
- If there is any I/O problempublic void draft(boolean draft) throws IOException
draft
- True makes the release a draft.IOException
- If there is any I/O problempublic boolean prerelease() throws IOException
IOException
- If there is any I/O problempublic void prerelease(boolean pre) throws IOException
pre
- True to identify the release as a prerelease.IOException
- If there is any I/O problempublic void delete() throws IOException
Release
delete
in interface Release
IOException
- If any I/O problems occur.Copyright © 2012–2014 jcabi.com. All rights reserved.