wicket.util.lang
Class EnumeratedType

java.lang.Object
  extended by wicket.util.string.StringValue
      extended by wicket.util.lang.EnumeratedType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IExceptionSettings.UnexpectedExceptionDisplay, IRequestCycleSettings.RenderStrategy, TimeOfDay.Meridian, XmlTag.Type

Deprecated. To be replaced by JSE 5 constructs in Wicket 2.0

public abstract class EnumeratedType
extends StringValue

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:
Serialized Form

Constructor Summary
EnumeratedType(java.lang.String name)
          Deprecated. Constructor.
 
Method Summary
static java.util.List getValues(java.lang.Class c)
          Deprecated. Gets the enumerated type values for a given subclass of EnumeratedType.
 
Methods inherited from class wicket.util.string.StringValue
afterFirst, afterLast, beforeFirst, beforeLast, repeat, repeat, replaceAll, to, toBoolean, toBoolean, toBooleanObject, toChar, toChar, toCharacter, toDouble, toDouble, toDoubleObject, toDuration, toDuration, toInt, toInt, toInteger, toLong, toLong, toLongObject, toOptionalBoolean, toOptionalCharacter, toOptionalDouble, toOptionalDuration, toOptionalInteger, toOptionalLong, toOptionalString, toOptionalTime, toString, toString, toTime, toTime, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumeratedType

public EnumeratedType(java.lang.String name)
Deprecated. 
Constructor.

Parameters:
name - Name of this enumerated type value
Method Detail

getValues

public static java.util.List getValues(java.lang.Class c)
Deprecated. 
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


Copyright © 2004-2008 Wicket developers. All Rights Reserved.