com.agfa.hap.sdo.impl
Class EnumTypeConverter<T extends java.lang.Enum>

java.lang.Object
  extended by com.agfa.hap.sdo.impl.TypeConverter<T>
      extended by com.agfa.hap.sdo.impl.EnumTypeConverter<T>

public class EnumTypeConverter<T extends java.lang.Enum>
extends TypeConverter<T>


Constructor Summary
EnumTypeConverter(java.lang.Class<T> enumClazz)
           
 
Method Summary
 T parse(java.lang.String str)
          Parse the string and return an instance of the implementation class with a value that is represented by the string parameter.
 java.lang.String toString(T instance)
          Convert the instance to a string.
 
Methods inherited from class com.agfa.hap.sdo.impl.TypeConverter
get, getDefaultConverter, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumTypeConverter

public EnumTypeConverter(java.lang.Class<T> enumClazz)
Method Detail

parse

public T parse(java.lang.String str)
Description copied from class: TypeConverter
Parse the string and return an instance of the implementation class with a value that is represented by the string parameter.

Specified by:
parse in class TypeConverter<T extends java.lang.Enum>

toString

public java.lang.String toString(T instance)
Description copied from class: TypeConverter
Convert the instance to a string. The instance is guaranteed to be of type T.

Specified by:
toString in class TypeConverter<T extends java.lang.Enum>


Copyright © 2007. All Rights Reserved.