Class Repo.Smart

    • Constructor Detail

      • Smart

        public Smart​(Repo rep)
        Public ctor.
        Parameters:
        rep - Repo
    • Method Detail

      • exists

        public boolean exists()
                       throws IOException
        Does this Repo actually exist in Github?
        Returns:
        True if it exists, false otherwise.
        Throws:
        IOException - If there is any I/O problem.
      • hasDescription

        public boolean hasDescription()
                               throws IOException
        Does it have a description.
        Returns:
        TRUE if description is present
        Throws:
        IOException - If there is any I/O problem
      • description

        public String description()
                           throws IOException
        Get its description.
        Returns:
        Description
        Throws:
        IOException - If there is any I/O problem
      • isPrivate

        public boolean isPrivate()
                          throws IOException
        Is it private?.
        Returns:
        TRUE if it's private
        Throws:
        IOException - If there is any I/O problem
      • github

        public Github github()
        Description copied from interface: Repo
        Get its owner.
        Specified by:
        github in interface Repo
        Returns:
        Github
      • coordinates

        public Coordinates coordinates()
        Description copied from interface: Repo
        Get its coordinates.
        Specified by:
        coordinates in interface Repo
        Returns:
        Coordinates
      • issues

        public Issues issues()
        Description copied from interface: Repo
        Iterate issues.
        Specified by:
        issues in interface Repo
        Returns:
        Issues
      • milestones

        public Milestones milestones()
        Description copied from interface: Repo
        Iterate milestones.
        Specified by:
        milestones in interface Repo
        Returns:
        Milestones
      • pulls

        public Pulls pulls()
        Description copied from interface: Repo
        Pull requests.
        Specified by:
        pulls in interface Repo
        Returns:
        Pulls
      • hooks

        public Hooks hooks()
        Description copied from interface: Repo
        Hooks.
        Specified by:
        hooks in interface Repo
        Returns:
        Hooks
      • labels

        public Labels labels()
        Description copied from interface: Repo
        Get all labels of the repo.
        Specified by:
        labels in interface Repo
        Returns:
        Labels
        See Also:
        Labels API
      • assignees

        public Assignees assignees()
        Description copied from interface: Repo
        Get all available assignees to which issues may be assigned.
        Specified by:
        assignees in interface Repo
        Returns:
        Assignees
        See Also:
        Assignees API
      • releases

        public Releases releases()
        Description copied from interface: Repo
        Get all releases of the repo.
        Specified by:
        releases in interface Repo
        Returns:
        Releases
        See Also:
        Releases API
      • keys

        public DeployKeys keys()
        Description copied from interface: Repo
        Get all deploy keys of the repo.
        Specified by:
        keys in interface Repo
        Returns:
        DeployKeys
        See Also:
        Deploy Keys API
      • forks

        public Forks forks()
        Description copied from interface: Repo
        Get all forks of the repo.
        Specified by:
        forks in interface Repo
        Returns:
        Forks
        See Also:
        Forks API
      • contents

        public Contents contents()
        Description copied from interface: Repo
        Get all contents of the repo.
        Specified by:
        contents in interface Repo
        Returns:
        Contents
        See Also:
        Contents API
      • git

        public Git git()
        Description copied from interface: Repo
        Get the Git API entry point.
        Specified by:
        git in interface Repo
        Returns:
        Collaborators
        See Also:
        Git Data API
      • stars

        public Stars stars()
        Description copied from interface: Repo
        Get Starring API.
        Specified by:
        stars in interface Repo
        Returns:
        Stars
        See Also:
        Starring API
      • patch

        public void patch​(javax.json.JsonObject json)
                   throws IOException
        Description copied from interface: JsonPatchable
        Patch using this JSON object.
        Specified by:
        patch in interface JsonPatchable
        Parameters:
        json - JSON object
        Throws:
        IOException - If there is any I/O problem
      • commits

        public RepoCommits commits()
        Description copied from interface: Repo
        Get repository's commits.
        Specified by:
        commits in interface Repo
        Returns:
        Commits
        See Also:
        Commits API
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem