Package de.xima.fc.mdl.enums
Enum EFormTargetState
- java.lang.Object
-
- java.lang.Enum<EFormTargetState>
-
- de.xima.fc.mdl.enums.EFormTargetState
-
- All Implemented Interfaces:
Serializable
,Comparable<EFormTargetState>
public enum EFormTargetState extends Enum<EFormTargetState>
When a form is submitted, a new state must be determined for the form. This enumeration describes how to determine that state. The normal and most common behavior isSUBMIT
, ie. setting the state toRECEIVED
when a form is submitted for the first time.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EFormTargetState
valueOf(String name)
Returns the enum constant of this type with the specified name.static EFormTargetState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAVE
public static final EFormTargetState SAVE
Form is put into the specialSAVED
state.
-
SUBMIT
public static final EFormTargetState SUBMIT
When the form is submitted normally. The new state is either the special stateRECEIVED
(when newly submitted), or the resubmission state (when submitted again).
-
CURRENT
public static final EFormTargetState CURRENT
The current state is not changed. When the form was newly submitted and has got no state, it is put into the stateRECEIVED
.
-
CUSTOM
public static final EFormTargetState CUSTOM
The new state for the form is read from the parameterxfc-pp-state
.
-
-
Method Detail
-
values
public static EFormTargetState[] 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 (EFormTargetState c : EFormTargetState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EFormTargetState 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
-
-