Class BitbucketClientObject

    • Constructor Detail

      • BitbucketClientObject

        public BitbucketClientObject​(JsonObject jsonObject)
        Initializes the object with a JSON object.
        Parameters:
        jsonObject - a JSON object
        Throws:
        IllegalArgumentException - if object is null
      • BitbucketClientObject

        public BitbucketClientObject​(JsonObject jsonObject,
                                     BitbucketClient bitbucketClient)
        Initializes the object with a JSON object and a Bitbucket API client.
        Parameters:
        jsonObject - a JSON object
        bitbucketClient - a Bitbucket API client
        Throws:
        IllegalArgumentException - if object is null
    • Method Detail

      • getJsonObject

        public final JsonObject getJsonObject()
        Returns the JSON object given to the constructor.
        Returns:
        the JSON object
      • setBitbucketClient

        public final void setBitbucketClient​(BitbucketClient value)
        Associates a Bitbucket client.
        Parameters:
        value - Bitbucket client to associate, or null
      • getType

        public final String getType()
        Returns the type name of this object.
        Returns:
        the type name if it was specified in the JSON object; null otherwise
      • getLink

        public final Link getLink​(String name)
        Returns the link of this object identified by a name.
        Parameters:
        name - name of the link
        Returns:
        the link if it was specified in the JSON object; null otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()
        Returns a string representation of the object.

        This implementation just returns a string representation of the underlying JSON object. Subclasses may override this method to return other values.

        Overrides:
        toString in class Object
        Returns:
        a string representation of the object