Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.marshallers
Class MapMarshaller<T extends Map<Object,Object>>

java.lang.Object
  extended by org.jboss.errai.marshalling.client.marshallers.MapMarshaller<T>
All Implemented Interfaces:
Marshaller<T>
Direct Known Subclasses:
LinkedMapMarshaller, SortedMapMarshaller

public class MapMarshaller<T extends Map<Object,Object>>
extends Object
implements Marshaller<T>

Author:
Mike Brock , Christian Sadilek

Field Summary
static MapMarshaller INSTANCE
           
 
Constructor Summary
MapMarshaller()
           
 
Method Summary
 T demarshall(EJValue o, MarshallingSession ctx)
           
protected  T doDemarshall(T impl, EJValue o, MarshallingSession ctx)
           
 T[] getEmptyArray()
          Returns an empty array of the type handled by this marshaller.
 String marshall(T o, MarshallingSession ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MapMarshaller INSTANCE
Constructor Detail

MapMarshaller

public MapMarshaller()
Method Detail

getEmptyArray

public T[] 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<T extends Map<Object,Object>>
Returns:
a one-dimensional zero-length array of the type handled by this marshaller.

demarshall

public T demarshall(EJValue o,
                    MarshallingSession ctx)
Specified by:
demarshall in interface Marshaller<T extends Map<Object,Object>>

doDemarshall

protected T doDemarshall(T impl,
                         EJValue o,
                         MarshallingSession ctx)

marshall

public String marshall(T o,
                       MarshallingSession ctx)
Specified by:
marshall in interface Marshaller<T extends Map<Object,Object>>

Errai 3.0.1-SNAPSHOT

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