net.sf.json.util
Class EnumMorpher

java.lang.Object
  extended by net.sf.json.util.EnumMorpher
All Implemented Interfaces:
Morpher, ObjectMorpher

public class EnumMorpher
extends Object
implements ObjectMorpher

Author:
Andres Almiray

Constructor Summary
EnumMorpher(Class enumClass)
           
 
Method Summary
 Object morph(Object value)
           
 Class morphsTo()
           
 boolean supports(Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumMorpher

public EnumMorpher(Class enumClass)
Method Detail

morph

public Object morph(Object value)
Specified by:
morph in interface ObjectMorpher

morphsTo

public Class morphsTo()
Specified by:
morphsTo in interface Morpher

supports

public boolean supports(Class clazz)
Specified by:
supports in interface Morpher