com.caucho.config.type
Class EnumType

java.lang.Object
  extended by com.caucho.config.type.ConfigType
      extended by com.caucho.config.type.EnumType

public final class EnumType
extends ConfigType

Represents an enumeration type


Constructor Summary
EnumType(java.lang.Class type)
          The enumeration type
 
Method Summary
 java.lang.Class getType()
          Returns the Java type.
 java.lang.Object valueOf(java.lang.Object value)
          Converts the value to a value of the type.
 java.lang.Object valueOf(java.lang.String text)
          Converts the string to a value of the type.
 
Methods inherited from class com.caucho.config.type.ConfigType
afterConfigure, beforeConfigure, beforeConfigureBean, create, getAttribute, getContentProgramAttribute, getProgramAttribute, getTypeName, init, inject, introspect, isBean, isEL, isNode, isNoTrim, isProgram, replaceObject, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumType

public EnumType(java.lang.Class type)
The enumeration type

Method Detail

getType

public java.lang.Class getType()
Returns the Java type.

Specified by:
getType in class ConfigType

valueOf

public java.lang.Object valueOf(java.lang.String text)
Converts the string to a value of the type.

Specified by:
valueOf in class ConfigType

valueOf

public java.lang.Object valueOf(java.lang.Object value)
Converts the value to a value of the type.

Overrides:
valueOf in class ConfigType