Enum InheritanceSelector.MODE
- java.lang.Object
-
- java.lang.Enum<InheritanceSelector.MODE>
-
- hudson.plugins.project_inheritance.projects.inheritance.InheritanceSelector.MODE
-
- All Implemented Interfaces:
Serializable
,Comparable<InheritanceSelector.MODE>
- Enclosing class:
- InheritanceSelector<T>
public static enum InheritanceSelector.MODE extends Enum<InheritanceSelector.MODE>
This enumeration lists the various modes of inheritance that can be specified. The modes mean:Mode Meaning USE_FIRST Only the first definition is kept. MULTIPLE Allow multiple values if Jenkins expects iterable. USE_LAST Only the last definition is kept. MERGE This will call InheritanceSelector.merge(Object, Object, InheritanceProject)
to merge identical definitions and put them at the position of the last definition.NOT_RESPONSIBLE This mode signifies, that this InheritanceSelector
is not responsible for the given class of Objects. If all registered selectors return this mode for a particular type, the default behaviour is presumed. This means "USE_LAST" in case the return value expected by Jenkins is not an iterable or "MULTIPLE" if it is an iterable.Do note that it is for obvious reasons not possible to apply two
InheritanceSelector
s that handle the same- Author:
- Martin Schroeder
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MERGE
MULTIPLE
NOT_RESPONSIBLE
USE_FIRST
USE_LAST
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InheritanceSelector.MODE
valueOf(String name)
Returns the enum constant of this type with the specified name.static InheritanceSelector.MODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USE_FIRST
public static final InheritanceSelector.MODE USE_FIRST
-
MULTIPLE
public static final InheritanceSelector.MODE MULTIPLE
-
USE_LAST
public static final InheritanceSelector.MODE USE_LAST
-
MERGE
public static final InheritanceSelector.MODE MERGE
-
NOT_RESPONSIBLE
public static final InheritanceSelector.MODE NOT_RESPONSIBLE
-
-
Method Detail
-
values
public static InheritanceSelector.MODE[] 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 (InheritanceSelector.MODE c : InheritanceSelector.MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InheritanceSelector.MODE 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
-
-