Package org.vx68k.bitbucket.api.client
Class BitbucketClientIssue
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.BitbucketClientObject
-
- org.vx68k.bitbucket.api.client.BitbucketClientIssue
-
- All Implemented Interfaces:
BitbucketIssue
public class BitbucketClientIssue extends BitbucketClientObject implements BitbucketIssue
Client implementation ofBitbucketIssue
. This class represents a issue by a JSON object.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.vx68k.bitbucket.api.BitbucketIssue
BitbucketIssue.Comment, BitbucketIssue.Component, BitbucketIssue.Milestone, BitbucketIssue.Version
-
-
Constructor Summary
Constructors Constructor Description BitbucketClientIssue(JsonObject jsonObject)
Initializes the object from a JSON object.BitbucketClientIssue(JsonObject jsonObject, BitbucketClient bitbucketClient)
Initializes the object from a JSON object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Function<JsonObject,BitbucketClientIssue>
creator()
Returns a function to create an issue form a JSON object.static Function<JsonObject,BitbucketClientIssue>
creator(BitbucketClient bitbucketClient)
Returns a function to create an issue form a JSON object.BitbucketUser
getAssignee()
Returns the assignee of the issue.BitbucketIssue.Component
getComponent()
Returns the component of the issue.BitbucketRendered
getContent()
Returns the content of the issue.Instant
getCreated()
Returns the instant when the issue was created.Instant
getEdited()
Returns the instant when the issue was last edited.int
getId()
Returns the identifier of the issue.String
getKind()
Returns the kind of the issue.BitbucketIssue.Milestone
getMilestone()
Returns the milestone of the issue.String
getPriority()
Returns the priority of the issue.BitbucketUser
getReporter()
Returns the reporter of the issue.BitbucketRepository
getRepository()
Returns the repository of the issue.String
getState()
Returns the state of the issue.String
getTitle()
Returns the title of the issue.Instant
getUpdated()
Returns the instant when the issue was last updated.BitbucketIssue.Version
getVersion()
Returns the version of the issue.int
getVotes()
Returns the number of votes.int
getWatches()
Returns the number of watches.-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObject
equals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
-
-
-
-
Constructor Detail
-
BitbucketClientIssue
public BitbucketClientIssue(JsonObject jsonObject)
Initializes the object from a JSON object. This constructor sets the Bitbucket API client tonull
.- Parameters:
jsonObject
- a JSON object
-
BitbucketClientIssue
public BitbucketClientIssue(JsonObject jsonObject, BitbucketClient bitbucketClient)
Initializes the object from a JSON object.- Parameters:
jsonObject
- a JSON objectbitbucketClient
- a Bitbucket API client
-
-
Method Detail
-
creator
public static Function<JsonObject,BitbucketClientIssue> creator()
Returns a function to create an issue form a JSON object.- Returns:
- a function to create an issue from a JSON object
-
creator
public static Function<JsonObject,BitbucketClientIssue> creator(BitbucketClient bitbucketClient)
Returns a function to create an issue form a JSON object.- Parameters:
bitbucketClient
- a Bitbucket API client- Returns:
- a function to create an issue from a JSON object
-
getRepository
public final BitbucketRepository getRepository()
Description copied from interface:BitbucketIssue
Returns the repository of the issue.- Specified by:
getRepository
in interfaceBitbucketIssue
- Returns:
- the repository of the issue
-
getId
public final int getId()
Description copied from interface:BitbucketIssue
Returns the identifier of the issue.- Specified by:
getId
in interfaceBitbucketIssue
- Returns:
- the identifier of the issue
-
getReporter
public final BitbucketUser getReporter()
Description copied from interface:BitbucketIssue
Returns the reporter of the issue.- Specified by:
getReporter
in interfaceBitbucketIssue
- Returns:
- the reporter of the issue
-
getState
public final String getState()
Description copied from interface:BitbucketIssue
Returns the state of the issue.- Specified by:
getState
in interfaceBitbucketIssue
- Returns:
- the state of the issue
-
getKind
public final String getKind()
Description copied from interface:BitbucketIssue
Returns the kind of the issue.- Specified by:
getKind
in interfaceBitbucketIssue
- Returns:
- the kind of the issue
-
getPriority
public final String getPriority()
Description copied from interface:BitbucketIssue
Returns the priority of the issue.- Specified by:
getPriority
in interfaceBitbucketIssue
- Returns:
- the priority of the issue
-
getTitle
public final String getTitle()
Description copied from interface:BitbucketIssue
Returns the title of the issue.- Specified by:
getTitle
in interfaceBitbucketIssue
- Returns:
- the title of the issue
-
getContent
public final BitbucketRendered getContent()
Description copied from interface:BitbucketIssue
Returns the content of the issue.- Specified by:
getContent
in interfaceBitbucketIssue
- Returns:
- the content of the issue
-
getAssignee
public final BitbucketUser getAssignee()
Description copied from interface:BitbucketIssue
Returns the assignee of the issue.- Specified by:
getAssignee
in interfaceBitbucketIssue
- Returns:
- the assignee of the issue
-
getComponent
public final BitbucketIssue.Component getComponent()
Description copied from interface:BitbucketIssue
Returns the component of the issue.- Specified by:
getComponent
in interfaceBitbucketIssue
- Returns:
- the component of the issue
-
getMilestone
public final BitbucketIssue.Milestone getMilestone()
Description copied from interface:BitbucketIssue
Returns the milestone of the issue.- Specified by:
getMilestone
in interfaceBitbucketIssue
- Returns:
- the milestone of the issue
-
getVersion
public final BitbucketIssue.Version getVersion()
Description copied from interface:BitbucketIssue
Returns the version of the issue.- Specified by:
getVersion
in interfaceBitbucketIssue
- Returns:
- the version of the issue
-
getVotes
public final int getVotes()
Description copied from interface:BitbucketIssue
Returns the number of votes.- Specified by:
getVotes
in interfaceBitbucketIssue
- Returns:
- the number of votes
-
getWatches
public final int getWatches()
Description copied from interface:BitbucketIssue
Returns the number of watches.- Specified by:
getWatches
in interfaceBitbucketIssue
- Returns:
- the number of watches
-
getCreated
public final Instant getCreated()
Description copied from interface:BitbucketIssue
Returns the instant when the issue was created.- Specified by:
getCreated
in interfaceBitbucketIssue
- Returns:
- the instant when the issue was created
-
getUpdated
public final Instant getUpdated()
Description copied from interface:BitbucketIssue
Returns the instant when the issue was last updated.- Specified by:
getUpdated
in interfaceBitbucketIssue
- Returns:
- the instant when the issue was last updated
-
getEdited
public final Instant getEdited()
Description copied from interface:BitbucketIssue
Returns the instant when the issue was last edited.- Specified by:
getEdited
in interfaceBitbucketIssue
- Returns:
- the instant when the issue was last edited
-
-