Package com.almis.awe.model.type
Enum AnswerType
- java.lang.Object
-
- java.lang.Enum<AnswerType>
-
- com.almis.awe.model.type.AnswerType
-
- All Implemented Interfaces:
Serializable
,Comparable<AnswerType>
public enum AnswerType extends Enum<AnswerType>
AnswerType Enumerated List of allowed web service types- Author:
- Pablo GARCIA - 23/NOV/2010
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AnswerType
getEnum(String value)
Retrieve enumerated valueString
toString()
Override toString method to return property valuestatic AnswerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AnswerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final AnswerType ERROR
-
OK
public static final AnswerType OK
-
WARNING
public static final AnswerType WARNING
-
INFO
public static final AnswerType INFO
-
-
Method Detail
-
values
public static AnswerType[] 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 (AnswerType c : AnswerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnswerType 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
-
getEnum
public static AnswerType getEnum(String value)
Retrieve enumerated value- Parameters:
value
- enumerated value- Returns:
- Answer type
-
toString
public String toString()
Override toString method to return property value- Overrides:
toString
in classEnum<AnswerType>
- Returns:
- Property value (if defined)
-
-