Interface BreadCrumb

All Known Implementing Classes:
BaseCrumb, BuildCrumb, BuildResultSummaryCrumb, ChainBranchesCrumb, ChainConfigCrumb, ChainCrumb, ChainResultSummaryCrumb, JobConfigCrumb, JobResultCrumb, ProjectCrumb

public interface BreadCrumb
An interface that represents a single item in a series of breadcrumbs
  • Method Details

    • isShown

      boolean isShown()
      Should the BreadCrumb be shown?
      Returns:
      true if it should be displayed
    • isCurrentPage

      boolean isCurrentPage()
      Returns true if the curren BreadCrumb should be selected
      Returns:
      true or false
    • getLabel

      @Nullable @Nullable String getLabel()
      Returns the visible label for the bread crumb
      Returns:
      string, cannot be null
      Throws:
      ClassCastException - possible if isShown() doesn't hold true
    • getUrl

      @Nullable @Nullable String getUrl()
      Returns the URL for the given label
      Returns:
      URL of label. No context is added
      Throws:
      ClassCastException - possible if isShown() doesn't hold true
    • getChildCrumbs

      Collection<BreadCrumb> getChildCrumbs()
      Returns the children crumbs. This is not as sinister as it sounds! The bread crumb will iterate throught each chil crumb until one returns true for isShown() and then it'll follow down that crumb tree
      Returns:
      Collection of BreadCrumb objects. Collections.emptyList() if no child crumbs
    • getAccessKey

      String getAccessKey()
      Returns a key as an access key
      Returns:
      null if doesn't exist