Package jenkins.branch
Enum MultiBranchProjectDisplayNamingStrategy
- java.lang.Object
-
- java.lang.Enum<MultiBranchProjectDisplayNamingStrategy>
-
- jenkins.branch.MultiBranchProjectDisplayNamingStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiBranchProjectDisplayNamingStrategy>
public enum MultiBranchProjectDisplayNamingStrategy extends Enum<MultiBranchProjectDisplayNamingStrategy>
Possible Display naming strategies.- Since:
- 2.7.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OBJECT_DISPLAY_NAME
Use the display name (if available) sourced from theObjectMetadataAction
.RAW_AND_OBJECT_DISPLAY_NAME
Use both the raw name and the display name from theObjectMetadataAction
(if available).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract String
generateName(String rawName, String displayName)
String
getDisplayName()
boolean
needsObjectDisplayName()
static MultiBranchProjectDisplayNamingStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiBranchProjectDisplayNamingStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT_DISPLAY_NAME
public static final MultiBranchProjectDisplayNamingStrategy OBJECT_DISPLAY_NAME
Use the display name (if available) sourced from theObjectMetadataAction
.
-
RAW_AND_OBJECT_DISPLAY_NAME
public static final MultiBranchProjectDisplayNamingStrategy RAW_AND_OBJECT_DISPLAY_NAME
Use both the raw name and the display name from theObjectMetadataAction
(if available).
-
-
Method Detail
-
values
public static MultiBranchProjectDisplayNamingStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MultiBranchProjectDisplayNamingStrategy c : MultiBranchProjectDisplayNamingStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiBranchProjectDisplayNamingStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
needsObjectDisplayName
public boolean needsObjectDisplayName()
-
getDisplayName
public String getDisplayName()
-
-