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.BitbucketUsergetAssignee()Returns the assignee of the issue.BitbucketIssue.ComponentgetComponent()Returns the component of the issue.BitbucketRenderedgetContent()Returns the content of the issue.InstantgetCreated()Returns the instant when the issue was created.InstantgetEdited()Returns the instant when the issue was last edited.intgetId()Returns the identifier of the issue.StringgetKind()Returns the kind of the issue.BitbucketIssue.MilestonegetMilestone()Returns the milestone of the issue.StringgetPriority()Returns the priority of the issue.BitbucketUsergetReporter()Returns the reporter of the issue.BitbucketRepositorygetRepository()Returns the repository of the issue.StringgetState()Returns the state of the issue.StringgetTitle()Returns the title of the issue.InstantgetUpdated()Returns the instant when the issue was last updated.BitbucketIssue.VersiongetVersion()Returns the version of the issue.intgetVotes()Returns the number of votes.intgetWatches()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:BitbucketIssueReturns the repository of the issue.- Specified by:
getRepositoryin interfaceBitbucketIssue- Returns:
- the repository of the issue
-
getId
public final int getId()
Description copied from interface:BitbucketIssueReturns the identifier of the issue.- Specified by:
getIdin interfaceBitbucketIssue- Returns:
- the identifier of the issue
-
getReporter
public final BitbucketUser getReporter()
Description copied from interface:BitbucketIssueReturns the reporter of the issue.- Specified by:
getReporterin interfaceBitbucketIssue- Returns:
- the reporter of the issue
-
getState
public final String getState()
Description copied from interface:BitbucketIssueReturns the state of the issue.- Specified by:
getStatein interfaceBitbucketIssue- Returns:
- the state of the issue
-
getKind
public final String getKind()
Description copied from interface:BitbucketIssueReturns the kind of the issue.- Specified by:
getKindin interfaceBitbucketIssue- Returns:
- the kind of the issue
-
getPriority
public final String getPriority()
Description copied from interface:BitbucketIssueReturns the priority of the issue.- Specified by:
getPriorityin interfaceBitbucketIssue- Returns:
- the priority of the issue
-
getTitle
public final String getTitle()
Description copied from interface:BitbucketIssueReturns the title of the issue.- Specified by:
getTitlein interfaceBitbucketIssue- Returns:
- the title of the issue
-
getContent
public final BitbucketRendered getContent()
Description copied from interface:BitbucketIssueReturns the content of the issue.- Specified by:
getContentin interfaceBitbucketIssue- Returns:
- the content of the issue
-
getAssignee
public final BitbucketUser getAssignee()
Description copied from interface:BitbucketIssueReturns the assignee of the issue.- Specified by:
getAssigneein interfaceBitbucketIssue- Returns:
- the assignee of the issue
-
getComponent
public final BitbucketIssue.Component getComponent()
Description copied from interface:BitbucketIssueReturns the component of the issue.- Specified by:
getComponentin interfaceBitbucketIssue- Returns:
- the component of the issue
-
getMilestone
public final BitbucketIssue.Milestone getMilestone()
Description copied from interface:BitbucketIssueReturns the milestone of the issue.- Specified by:
getMilestonein interfaceBitbucketIssue- Returns:
- the milestone of the issue
-
getVersion
public final BitbucketIssue.Version getVersion()
Description copied from interface:BitbucketIssueReturns the version of the issue.- Specified by:
getVersionin interfaceBitbucketIssue- Returns:
- the version of the issue
-
getVotes
public final int getVotes()
Description copied from interface:BitbucketIssueReturns the number of votes.- Specified by:
getVotesin interfaceBitbucketIssue- Returns:
- the number of votes
-
getWatches
public final int getWatches()
Description copied from interface:BitbucketIssueReturns the number of watches.- Specified by:
getWatchesin interfaceBitbucketIssue- Returns:
- the number of watches
-
getCreated
public final Instant getCreated()
Description copied from interface:BitbucketIssueReturns the instant when the issue was created.- Specified by:
getCreatedin interfaceBitbucketIssue- Returns:
- the instant when the issue was created
-
getUpdated
public final Instant getUpdated()
Description copied from interface:BitbucketIssueReturns the instant when the issue was last updated.- Specified by:
getUpdatedin interfaceBitbucketIssue- Returns:
- the instant when the issue was last updated
-
getEdited
public final Instant getEdited()
Description copied from interface:BitbucketIssueReturns the instant when the issue was last edited.- Specified by:
getEditedin interfaceBitbucketIssue- Returns:
- the instant when the issue was last edited
-
-