Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.marshallers
Class QualifyingMarshallerWrapper<T>

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

public class QualifyingMarshallerWrapper<T>
extends AbstractNullableMarshaller<T>

Used to wrap marshallers annotated with AlwaysQualify

Author:
Mike Brock, Christian Sadilek

Constructor Summary
QualifyingMarshallerWrapper(Marshaller<T> delegate, Class<T> type)
           
 
Method Summary
 T doNotNullDemarshall(EJValue o, MarshallingSession ctx)
           
 String doNotNullMarshall(T o, MarshallingSession ctx)
           
 T[] 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

QualifyingMarshallerWrapper

public QualifyingMarshallerWrapper(Marshaller<T> delegate,
                                   Class<T> type)
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[]).

Returns:
a one-dimensional zero-length array of the type handled by this marshaller.

doNotNullDemarshall

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

doNotNullMarshall

public String doNotNullMarshall(T o,
                                MarshallingSession ctx)
Specified by:
doNotNullMarshall in class AbstractNullableMarshaller<T>

Errai 3.0.1-SNAPSHOT

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