Package org.ametys.core
Enum DevMode.DEVMODE
- java.lang.Object
-
- java.lang.Enum<DevMode.DEVMODE>
-
- org.ametys.core.DevMode.DEVMODE
-
- All Implemented Interfaces:
Serializable
,Comparable<DevMode.DEVMODE>
- Enclosing class:
- DevMode
public static enum DevMode.DEVMODE extends Enum<DevMode.DEVMODE>
Enumerator for the dev mode value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVELOPMENT
dev modePRODUCTION
mode prodSUPER_DEVELOPPMENT
Super dev mode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DevMode.DEVMODE
createsFromString(String size)
Converts a string to a DEVMODEString
toString()
static DevMode.DEVMODE
valueOf(String name)
Returns the enum constant of this type with the specified name.static DevMode.DEVMODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUPER_DEVELOPPMENT
public static final DevMode.DEVMODE SUPER_DEVELOPPMENT
Super dev mode
-
DEVELOPMENT
public static final DevMode.DEVMODE DEVELOPMENT
dev mode
-
PRODUCTION
public static final DevMode.DEVMODE PRODUCTION
mode prod
-
-
Method Detail
-
values
public static DevMode.DEVMODE[] 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 (DevMode.DEVMODE c : DevMode.DEVMODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DevMode.DEVMODE 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<DevMode.DEVMODE>
-
createsFromString
public static DevMode.DEVMODE createsFromString(String size)
Converts a string to a DEVMODE- Parameters:
size
- The size to convert- Returns:
- The size corresponding to the string or null if unknown
-
-