Package com.atlassian.breadcrumbs
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAccessKey()
Returns a key as an access keyCollection<BreadCrumb>
getChildCrumbs()
Returns the children crumbs.@Nullable String
getLabel()
Returns the visible label for the bread crumb@Nullable String
getUrl()
Returns the URL for the given labelboolean
isCurrentPage()
Returns true if the currenBreadCrumb
should be selectedboolean
isShown()
Should theBreadCrumb
be shown?
-
-
-
Method Detail
-
isShown
boolean isShown()
Should theBreadCrumb
be shown?- Returns:
- true if it should be displayed
-
isCurrentPage
boolean isCurrentPage()
Returns true if the currenBreadCrumb
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 ifisShown()
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 ifisShown()
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 forisShown()
and then it'll follow down that crumb tree- Returns:
Collection
ofBreadCrumb
objects.Collections.emptyList()
if no child crumbs
-
getAccessKey
String getAccessKey()
Returns a key as an access key- Returns:
- null if doesn't exist
-
-