java.lang.Object
org.apache.wicket.util.string.StringValue
org.apache.wicket.util.lang.EnumeratedType
- All Implemented Interfaces:
Serializable
,IClusterable
- Direct Known Subclasses:
Action
,ExceptionSettings.UnexpectedExceptionDisplay
A base class for defining enumerated types. Since this class extends StringValue, every
enumerated type subclass is a StringValue that can be manipulated, converted and displayed in
useful ways. In addition to constructing a type with the given name, lists are kept of all
enumeration values by subclass. The list of available values in the enumeration represented by a
given subclass can be retrieved by calling getValues(Class).
- Author:
- Jonathan Locke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<EnumeratedType>
getValues
(Class<? extends EnumeratedType> c) Gets the enumerated type values for a given subclass of EnumeratedType.Method to ensure that == works after deserializationMethods inherited from class org.apache.wicket.util.string.StringValue
afterFirst, afterLast, beforeFirst, beforeLast, equals, hashCode, isEmpty, isNull, repeat, repeat, replaceAll, to, toBoolean, toBoolean, toBooleanObject, toChar, toChar, toCharacter, toDouble, toDouble, toDoubleObject, toDuration, toDuration, toEnum, toEnum, toEnum, toInstant, toInstant, toInt, toInt, toInteger, toLong, toLong, toLongObject, toOptional, toOptionalBoolean, toOptionalCharacter, toOptionalDouble, toOptionalDuration, toOptionalEnum, toOptionalInstant, toOptionalInteger, toOptionalLong, toOptionalString, toString, toString, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
-
Constructor Details
-
EnumeratedType
Constructor.- Parameters:
name
- Name of this enumerated type value
-
-
Method Details
-
getValues
Gets the enumerated type values for a given subclass of EnumeratedType.- Parameters:
c
- The enumerated type subclass to get values for- Returns:
- List of all values of the given subclass
-
readResolve
Method to ensure that == works after deserialization- Returns:
- object instance
- Throws:
ObjectStreamException
-