Class Submodule

java.lang.Object
com.atlassian.bitbucket.content.Submodule
All Implemented Interfaces:
ContentTreeNode

public abstract class Submodule extends Object implements ContentTreeNode
Represents a remote link in a source tree
  • Constructor Details

    • Submodule

      public Submodule()
  • Method Details

    • getBrowseUrl

      @Nullable public abstract String getBrowseUrl()
      Returns:
      an optional URL to the remote submodule repository at a specific commit, or null. The structure of this URL is dependent on the hosting server (e.g. Bitbucket or Github).
    • getRepositoryUrl

      @Nullable public abstract String getRepositoryUrl()
      Returns:
      an optional URL to the remote repository containing this submodule, or null.
    • getType

      @Nonnull public ContentTreeNode.Type getType()
      Specified by:
      getType in interface ContentTreeNode
      Returns:
      the type of the ContentTreeNode
    • getUrl

      @Nonnull public abstract String getUrl()
      Returns:
      the mandatory SCM URL to the remote repository.