Package org.cyclos.model.system.wizards
Enum CustomWizardResultType
- java.lang.Object
-
- java.lang.Enum<CustomWizardResultType>
-
- org.cyclos.model.system.wizards.CustomWizardResultType
-
- All Implemented Interfaces:
Serializable,Comparable<CustomWizardResultType>,HasMessageKey
public enum CustomWizardResultType extends Enum<CustomWizardResultType> implements HasMessageKey
Result type for a wizard
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PLAIN_TEXTThe result is a plain textREGISTRATIONThe result is aUserRegistrationResultRICH_TEXTThe result is an HTML-formatted text
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static CustomWizardResultTypevalueOf(String name)Returns the enum constant of this type with the specified name.static CustomWizardResultType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGISTRATION
public static final CustomWizardResultType REGISTRATION
The result is aUserRegistrationResult
-
PLAIN_TEXT
public static final CustomWizardResultType PLAIN_TEXT
The result is a plain text
-
RICH_TEXT
public static final CustomWizardResultType RICH_TEXT
The result is an HTML-formatted text
-
-
Method Detail
-
values
public static CustomWizardResultType[] 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 (CustomWizardResultType c : CustomWizardResultType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomWizardResultType 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-