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, carefulIntrospect, create, createType, getAddAttribute, getAddBeanAttribute, getAttribute, getComponentType, getConstructor, getContentProgramAttribute, getDefaultAttribute, getProgramAttribute, getType, getTypeName, init, inject, introspect, isArray, isBean, isConstructableFromString, isEL, isEnvBean, isInlineType, isNode, isNoTrim, isProgram, isQualifier, isReplace, replaceObject, setEnvBean, setProperty, 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