Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.server.marshallers
Class DefaultEnumMarshaller

java.lang.Object
  extended by org.jboss.errai.marshalling.server.marshallers.DefaultEnumMarshaller
All Implemented Interfaces:
Marshaller<Enum>

public class DefaultEnumMarshaller
extends Object
implements Marshaller<Enum>

Author:
Mike Brock

Constructor Summary
DefaultEnumMarshaller(Class enumType)
           
 
Method Summary
 Enum demarshall(EJValue a0, MarshallingSession a1)
           
 Enum[] getEmptyArray()
          Returns an empty array of the type handled by this marshaller.
 String marshall(Enum a0, MarshallingSession a1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEnumMarshaller

public DefaultEnumMarshaller(Class enumType)
Method Detail

demarshall

public Enum demarshall(EJValue a0,
                       MarshallingSession a1)
Specified by:
demarshall in interface Marshaller<Enum>

marshall

public String marshall(Enum a0,
                       MarshallingSession a1)
Specified by:
marshall in interface Marshaller<Enum>

getEmptyArray

public Enum[] getEmptyArray()
Description copied from interface: Marshaller
Returns an empty array of the type handled by this marshaller. Useful in conjunction with List.toArray(T[]).

Specified by:
getEmptyArray in interface Marshaller<Enum>
Returns:
a one-dimensional zero-length array of the type handled by this marshaller.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.