org.staxnav
Class ValueType.EnumType<E extends java.lang.Enum<E>>

java.lang.Object
  extended by org.staxnav.ValueType<E>
      extended by org.staxnav.ValueType.EnumType<E>
Enclosing class:
ValueType<V>

protected static class ValueType.EnumType<E extends java.lang.Enum<E>>
extends ValueType<E>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.staxnav.ValueType
ValueType.EnumType<E extends java.lang.Enum<E>>
 
Field Summary
 
Fields inherited from class org.staxnav.ValueType
BOOLEAN, DATE, DATE_TIME, INTEGER, STRING, TRIMMED_STRING
 
Constructor Summary
ValueType.EnumType(java.lang.Class<E> enumType)
           
 
Method Summary
protected  E parse(java.lang.String s)
          Parse the string to the java type for a non null parameter value.
 
Methods inherited from class org.staxnav.ValueType
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueType.EnumType

public ValueType.EnumType(java.lang.Class<E> enumType)
Method Detail

parse

protected E parse(java.lang.String s)
                                     throws java.lang.Exception
Description copied from class: ValueType
Parse the string to the java type for a non null parameter value.

Specified by:
parse in class ValueType<E extends java.lang.Enum<E>>
Parameters:
s - the string value to parse
Returns:
the parsed value
Throws:
java.lang.Exception - any exception that would prevent the type conversion to happen


Copyright © 2011 eXo Platform SAS. All Rights Reserved.