public static enum BlueUrlTokenizer.UrlPart extends Enum<BlueUrlTokenizer.UrlPart>
Use BlueUrlTokenizer.getPart(UrlPart) to get a specific URL "part",
or call BlueUrlTokenizer.hasPart(UrlPart) to check for it's existence.
*** TBD: decide whether to stick with this model, or to switch to more of a straight getters/setters style on the BlueUrlTokenizer instance.
Reason for trying this approach ("parts" enum) is that I (TF) think the straight properties style with getters/setters
would get messy as we add support for parsing more URL paths/parts i.e. a getters/setters API explosion.
That said ... not sure I love this approach either, hence marked BlueoceanUrl as @Restricted(NoExternalUse.class). Let's suck it
and see for a bit and change if it sucks :)
| Enum Constant and Description |
|---|
BRANCH
A URL pointing at a pipeline Run Details for a specific branch.
|
DASHBOARD_PIPELINES
Main blue ocean pipelines dashboard.
|
ORGANIZATION
A URL pointing at a page associated with an "organization" resource.
|
PIPELINE
A URL pointing at a pipeline.
|
PIPELINE_RUN_DETAIL
A URL pointing at a pipeline Run Details.
|
PIPELINE_RUN_DETAIL_ID
A URL pointing at a pipeline Run Details for a specific run of a specific branch.
|
PIPELINE_RUN_DETAIL_TAB
A URL pointing at one of the tabs on a pipeline Run Details for a specific run of a specific branch.
|
PIPELINE_TAB
A URL pointing at a pipeline tab.
|
| Modifier and Type | Method and Description |
|---|---|
static BlueUrlTokenizer.UrlPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlueUrlTokenizer.UrlPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlueUrlTokenizer.UrlPart DASHBOARD_PIPELINES
public static final BlueUrlTokenizer.UrlPart ORGANIZATION
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the organization name.
public static final BlueUrlTokenizer.UrlPart PIPELINE
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the pipeline name. Note that the URL
may have additional parts (e.g. PIPELINE_TAB or PIPELINE_RUN_DETAIL).
public static final BlueUrlTokenizer.UrlPart PIPELINE_TAB
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the tab name.
public static final BlueUrlTokenizer.UrlPart PIPELINE_RUN_DETAIL
See BRANCH for sub-component of this URL.
public static final BlueUrlTokenizer.UrlPart BRANCH
See PIPELINE_RUN_DETAIL_ID for sub-component of this URL.
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the branch name.
public static final BlueUrlTokenizer.UrlPart PIPELINE_RUN_DETAIL_ID
See PIPELINE_RUN_DETAIL_ID for sub-component of this URL.
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the Run ID.
public static final BlueUrlTokenizer.UrlPart PIPELINE_RUN_DETAIL_TAB
Call Use BlueUrlTokenizer.getPart(UrlPart) to get the tab name.
public static BlueUrlTokenizer.UrlPart[] values()
for (BlueUrlTokenizer.UrlPart c : BlueUrlTokenizer.UrlPart.values()) System.out.println(c);
public static BlueUrlTokenizer.UrlPart valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2017. All rights reserved.