Errai 3.0.1-SNAPSHOT

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

java.lang.Object
  extended by org.jboss.errai.marshalling.client.marshallers.AbstractNullableMarshaller<T>
All Implemented Interfaces:
Marshaller<T>
Direct Known Subclasses:
AbstractNumberMarshaller, ArrayMarshallerWrapper, BigDecimalMarshaller, BigIntegerMarshaller, BooleanMarshaller, CharacterMarshaller, DateMarshaller, FallbackExceptionMarshaller, ObjectMarshaller, QualifyingMarshallerWrapper, SQLDateMarshaller, StringBufferMarshaller, StringBuilderMarshaller, StringMarshaller, TimeMarshaller, TimestampMarshaller

public abstract class AbstractNullableMarshaller<T>
extends Object
implements Marshaller<T>

Handles null-ing of types as a simple wrapper.

Author:
Mike Brock

Constructor Summary
AbstractNullableMarshaller()
           
 
Method Summary
 T demarshall(EJValue o, MarshallingSession ctx)
           
abstract  T doNotNullDemarshall(EJValue o, MarshallingSession ctx)
           
abstract  String doNotNullMarshall(T o, MarshallingSession ctx)
           
 String marshall(T o, MarshallingSession ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.marshalling.client.api.Marshaller
getEmptyArray
 

Constructor Detail

AbstractNullableMarshaller

public AbstractNullableMarshaller()
Method Detail

demarshall

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

marshall

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

doNotNullDemarshall

public abstract T doNotNullDemarshall(EJValue o,
                                      MarshallingSession ctx)

doNotNullMarshall

public abstract String doNotNullMarshall(T o,
                                         MarshallingSession ctx)

Errai 3.0.1-SNAPSHOT

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