Package org.vx68k.bitbucket.api.client
Class BitbucketClientRef
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.BitbucketClientObject
-
- org.vx68k.bitbucket.api.client.BitbucketClientRef
-
- All Implemented Interfaces:
BitbucketRef
- Direct Known Subclasses:
BitbucketClientBranch
public class BitbucketClientRef extends BitbucketClientObject implements BitbucketRef
Client implementation ofBitbucketRef
. This class represents a commit ref by a JSON object.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Field Summary
-
Fields inherited from interface org.vx68k.bitbucket.api.BitbucketRef
BOOKMARK, BRANCH, NAMED_BRANCH
-
-
Constructor Summary
Constructors Constructor Description BitbucketClientRef(JsonObject jsonObject)
Initializes the object.BitbucketClientRef(JsonObject jsonObject, BitbucketClient bitbucketClient)
Initializes the object with a Bitbucket API client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the commit reference.BitbucketCommit
getTarget()
Returns the target of the commit reference.-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObject
equals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.vx68k.bitbucket.api.BitbucketRef
getType
-
-
-
-
Constructor Detail
-
BitbucketClientRef
public BitbucketClientRef(JsonObject jsonObject)
Initializes the object.- Parameters:
jsonObject
- a JSON object
-
BitbucketClientRef
public BitbucketClientRef(JsonObject jsonObject, BitbucketClient bitbucketClient)
Initializes the object with a Bitbucket API client.- Parameters:
jsonObject
- a JSON objectbitbucketClient
- a Bitbucket API client
-
-
Method Detail
-
getName
public final String getName()
Returns the name of the commit reference.- Specified by:
getName
in interfaceBitbucketRef
- Returns:
- the name of the commit reference
-
getTarget
public final BitbucketCommit getTarget()
Description copied from interface:BitbucketRef
Returns the target of the commit reference.- Specified by:
getTarget
in interfaceBitbucketRef
- Returns:
- the target of the commit reference
-
-