Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.api
Class ArrayMarshallerWrapper

java.lang.Object
  extended by org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller<Object>
      extended by org.jboss.errai.marshalling.client.api.ArrayMarshallerWrapper
All Implemented Interfaces:
Marshaller<Object>

public class ArrayMarshallerWrapper
extends AbstractNullableMarshaller<Object>

A marshaller that wraps another marshaller, producing and consuming arrays of objects handled by that marshaller.

Author:
Christian Sadilek , Jonathan Fuerth

Constructor Summary
ArrayMarshallerWrapper(Marshaller<?> wrappedMarshaller)
           
 
Method Summary
 Object doNotNullDemarshall(EJValue o, MarshallingSession ctx)
           
 String doNotNullMarshall(Object o, MarshallingSession ctx)
           
 Object[] getEmptyArray()
          Returns an empty array of the type handled by this marshaller.
 
Methods inherited from class org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller
demarshall, marshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayMarshallerWrapper

public ArrayMarshallerWrapper(Marshaller<?> wrappedMarshaller)
Method Detail

doNotNullDemarshall

public Object doNotNullDemarshall(EJValue o,
                                  MarshallingSession ctx)
Specified by:
doNotNullDemarshall in class AbstractNullableMarshaller<Object>

doNotNullMarshall

public String doNotNullMarshall(Object o,
                                MarshallingSession ctx)
Specified by:
doNotNullMarshall in class AbstractNullableMarshaller<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[]).

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.