Enum SearchServiceDebugModeHelper.DebugMode
- java.lang.Object
-
- java.lang.Enum<SearchServiceDebugModeHelper.DebugMode>
-
- org.ametys.web.frontoffice.search.requesttime.SearchServiceDebugModeHelper.DebugMode
-
- All Implemented Interfaces:
Serializable
,Comparable<SearchServiceDebugModeHelper.DebugMode>
- Enclosing class:
- SearchServiceDebugModeHelper
public static enum SearchServiceDebugModeHelper.DebugMode extends Enum<SearchServiceDebugModeHelper.DebugMode>
Enumeration of debug modes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEBUG_VIEW_AFTER_VALIDATE
The "debug-view-after-validate" debug mode, which declares the action URL with theNORMAL
debug mode and the service.debug cocoon-view, for debugging after entering user inputsNORMAL
The "normal" debug mode, which sax additional debug information
-
Field Summary
Fields Modifier and Type Field Description private static Map<Integer,SearchServiceDebugModeHelper.DebugMode>
__values
(package private) int
_value
-
Constructor Summary
Constructors Modifier Constructor Description private
DebugMode(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
Gets the int valuestatic SearchServiceDebugModeHelper.DebugMode
valueOf(int mode)
Gets the debug mode from an int valuestatic SearchServiceDebugModeHelper.DebugMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SearchServiceDebugModeHelper.DebugMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final SearchServiceDebugModeHelper.DebugMode NORMAL
The "normal" debug mode, which sax additional debug information
-
DEBUG_VIEW_AFTER_VALIDATE
public static final SearchServiceDebugModeHelper.DebugMode DEBUG_VIEW_AFTER_VALIDATE
The "debug-view-after-validate" debug mode, which declares the action URL with theNORMAL
debug mode and the service.debug cocoon-view, for debugging after entering user inputs
-
-
Field Detail
-
__values
private static Map<Integer,SearchServiceDebugModeHelper.DebugMode> __values
-
_value
int _value
-
-
Constructor Detail
-
DebugMode
private DebugMode(int value)
-
-
Method Detail
-
values
public static SearchServiceDebugModeHelper.DebugMode[] 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 (SearchServiceDebugModeHelper.DebugMode c : SearchServiceDebugModeHelper.DebugMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchServiceDebugModeHelper.DebugMode 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
-
valueOf
public static SearchServiceDebugModeHelper.DebugMode valueOf(int mode)
Gets the debug mode from an int value- Parameters:
mode
- The int value- Returns:
- The debug mode
-
getInt
public int getInt()
Gets the int value- Returns:
- the int value
-
-