org.chromattic.core.bean
Class StringEnumTypeKind<E extends Enum<E>>

java.lang.Object
  extended by org.chromattic.core.bean.SimpleTypeKind<E,String>
      extended by org.chromattic.core.bean.SimpleTypeKind.STRING<E>
          extended by org.chromattic.core.bean.StringEnumTypeKind<E>

public class StringEnumTypeKind<E extends Enum<E>>
extends SimpleTypeKind.STRING<E>

Version:
$Revision$
Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.chromattic.core.bean.SimpleTypeKind
SimpleTypeKind.BOOLEAN<E>, SimpleTypeKind.DATE<E>, SimpleTypeKind.DOUBLE<E>, SimpleTypeKind.LONG<E>, SimpleTypeKind.PATH<E>, SimpleTypeKind.STREAM<E>, SimpleTypeKind.STRING<E>
 
Constructor Summary
StringEnumTypeKind(Class<E> externalType)
           
 
Method Summary
 E toExternal(String internal)
           
 String toInternal(E external)
           
 
Methods inherited from class org.chromattic.core.bean.SimpleTypeKind
getExternalType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringEnumTypeKind

public StringEnumTypeKind(Class<E> externalType)
Method Detail

toExternal

public E toExternal(String internal)
Specified by:
toExternal in class SimpleTypeKind<E extends Enum<E>,String>

toInternal

public String toInternal(E external)
Specified by:
toInternal in class SimpleTypeKind<E extends Enum<E>,String>


Copyright © 2010 eXo Platform SAS. All Rights Reserved.