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 ConstantDescriptionUse the display name (if available) sourced from theObjectMetadataAction
.Use the raw name.Use both the raw name and the display name from theObjectMetadataAction
(if available). -
Method Summary
Modifier and TypeMethodDescriptionabstract String
generateName
(String rawName, String displayName) boolean
Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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). -
RAW
Use the raw name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
generateName
-