Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.marshallers
Class AbstractCollectionMarshaller<C extends Collection>

java.lang.Object
  extended by org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller<C>
      extended by org.jboss.errai.marshalling.client.marshallers.AbstractCollectionMarshaller<C>
All Implemented Interfaces:
Marshaller<C>
Direct Known Subclasses:
LinkedHashSetMarshaller, LinkedListMarshaller, ListMarshaller, PriorityQueueMarshaller, QueueMarshaller, SetMarshaller, SortedSetMarshaller

public abstract class AbstractCollectionMarshaller<C extends Collection>
extends AbstractBackReferencingMarshaller<C>

Author:
Mike Brock, Christian Sadilek

Constructor Summary
AbstractCollectionMarshaller()
           
 
Method Summary
abstract  C doDemarshall(EJArray o, MarshallingSession ctx)
           
 C doDemarshall(EJValue o, MarshallingSession ctx)
           
 void doMarshall(StringBuilder buf, C o, MarshallingSession ctx)
           
protected
<T extends Collection<Object>>
T
marshallToCollection(T collection, EJArray array, MarshallingSession ctx)
           
 
Methods inherited from class org.jboss.errai.marshalling.client.marshallers.AbstractBackReferencingMarshaller
demarshall, marshall, marshall
 
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

AbstractCollectionMarshaller

public AbstractCollectionMarshaller()
Method Detail

doMarshall

public void doMarshall(StringBuilder buf,
                       C o,
                       MarshallingSession ctx)
Specified by:
doMarshall in class AbstractBackReferencingMarshaller<C extends Collection>

doDemarshall

public final C doDemarshall(EJValue o,
                            MarshallingSession ctx)
Specified by:
doDemarshall in class AbstractBackReferencingMarshaller<C extends Collection>

doDemarshall

public abstract C doDemarshall(EJArray o,
                               MarshallingSession ctx)

marshallToCollection

protected <T extends Collection<Object>> T marshallToCollection(T collection,
                                                                EJArray array,
                                                                MarshallingSession ctx)

Errai 3.0.1-SNAPSHOT

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