Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.api
Interface Marshaller<T>

All Known Subinterfaces:
GeneratedMarshaller<T>, ServerMarshaller<V>
All Known Implementing Classes:
AbstractBackReferencingMarshaller, AbstractCollectionMarshaller, AbstractNullableMarshaller, AbstractNumberMarshaller, ArrayMarshallerWrapper, BigDecimalMarshaller, BigIntegerMarshaller, BooleanMarshaller, ByteMarshaller, CharacterMarshaller, DateMarshaller, DefaultArrayMarshaller, DefaultDefinitionMarshaller, DefaultEnumMarshaller, DoubleMarshaller, ErraiProtocolEnvelopeMarshaller, ErraiProtocolEnvelopeNoAutoMarshaller, FallbackExceptionMarshaller, FloatMarshaller, IntegerMarshaller, LinkedHashSetMarshaller, LinkedListMarshaller, LinkedMapMarshaller, ListMarshaller, LongMarshaller, MapMarshaller, ObjectMarshaller, PriorityQueueMarshaller, QualifyingMarshallerWrapper, QueueMarshaller, SetMarshaller, ShortMarshaller, SortedMapMarshaller, SortedSetMarshaller, SQLDateMarshaller, StringBufferMarshaller, StringBuilderMarshaller, StringMarshaller, TimeMarshaller, TimestampMarshaller

public interface Marshaller<T>

Author:
Mike Brock

Method Summary
 T demarshall(EJValue o, MarshallingSession ctx)
           
 T[] getEmptyArray()
          Returns an empty array of the type handled by this marshaller.
 String marshall(T o, MarshallingSession ctx)
           
 

Method Detail

demarshall

T demarshall(EJValue o,
             MarshallingSession ctx)

marshall

String marshall(T o,
                MarshallingSession ctx)

getEmptyArray

T[] getEmptyArray()
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.