Errai 3.0.1-SNAPSHOT

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

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

public class DefaultArrayMarshaller
extends Object
implements Marshaller<Object>

Author:
Mike Brock

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

Constructor Detail

DefaultArrayMarshaller

public DefaultArrayMarshaller(MetaClass arrayType,
                              Marshaller<Object> outerMarshaller)
Method Detail

getTypeHandled

public Class<Object> getTypeHandled()

demarshall

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

marshall

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

getEmptyArray

public Object[] 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<Object>
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.