Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.server.marshallers
Class DefaultDefinitionMarshaller

java.lang.Object
  extended by org.jboss.errai.marshalling.server.marshallers.DefaultDefinitionMarshaller
All Implemented Interfaces:
Marshaller<Object>, ServerMarshaller<Object>

public class DefaultDefinitionMarshaller
extends Object
implements ServerMarshaller<Object>

Author:
Mike Brock

Constructor Summary
DefaultDefinitionMarshaller(MappingDefinition definition)
           
 
Method Summary
 Object demarshall(EJValue o, MarshallingSession ctx)
           
static Class getClassReference(EJObject oMap)
           
 Object[] getEmptyArray()
          Returns an empty array of the type handled by this marshaller.
 String marshall(Object o, MarshallingSession ctx)
           
 void marshall(OutputStream outstream, Object o, MarshallingSession mSession)
           
static void setProperty(Object i, Field f, Object v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDefinitionMarshaller

public DefaultDefinitionMarshaller(MappingDefinition definition)
Method Detail

setProperty

public static void setProperty(Object i,
                               Field f,
                               Object v)

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

Specified by:
getEmptyArray in interface Marshaller<Object>
Returns:
a one-dimensional zero-length array of the type handled by this marshaller.

demarshall

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

marshall

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

marshall

public void marshall(OutputStream outstream,
                     Object o,
                     MarshallingSession mSession)
              throws IOException
Specified by:
marshall in interface ServerMarshaller<Object>
Throws:
IOException

getClassReference

public static Class getClassReference(EJObject oMap)

Errai 3.0.1-SNAPSHOT

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