|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.string.StringValue
org.apache.wicket.util.lang.EnumeratedType
public abstract class EnumeratedType
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).
Constructor Summary | |
---|---|
EnumeratedType(String name)
Constructor. |
Method Summary | |
---|---|
static List<EnumeratedType> |
getValues(Class<? extends EnumeratedType> c)
Gets the enumerated type values for a given subclass of EnumeratedType. |
Object |
readResolve()
Method to ensure that == works after deserialization |
Methods 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, toInt, toInt, toInteger, toLong, toLong, toLongObject, toOptionalBoolean, toOptionalCharacter, toOptionalDouble, toOptionalDuration, toOptionalEnum, toOptionalInteger, toOptionalLong, toOptionalString, toOptionalTime, toString, toString, toTime, toTime, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnumeratedType(String name)
name
- Name of this enumerated type valueMethod Detail |
---|
public static List<EnumeratedType> getValues(Class<? extends EnumeratedType> c)
c
- The enumerated type subclass to get values for
public Object readResolve() throws ObjectStreamException
ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |