Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.client.api
Interface MappingContext

All Known Subinterfaces:
ServerMappingContext
All Known Implementing Classes:
GeneratorMappingContext

public interface MappingContext

Author:
Mike Brock

Method Summary
 boolean canMarshal(String cls)
          Indicates whether or not the specified class can be marshalled, whether or not a definition exists.
 Marshaller<Object> getMarshaller(String clazz)
          Returns the Marshaller instance that can handle the given type.
 boolean hasMarshaller(String clazzName)
           
 

Method Detail

getMarshaller

Marshaller<Object> getMarshaller(String clazz)
Returns the Marshaller instance that can handle the given type.

Parameters:
clazz - fully qualified class name of the type to be marshalled, in the format returned by Class.getName() and MetaClass.getFullyQualifiedName(). Null is permitted, and yields a marshaller that can only marshal and demarshal null references.
Returns:
a marshaller instance that can handle the given type, or null if the type can't be handled in this mapping context.

hasMarshaller

boolean hasMarshaller(String clazzName)

canMarshal

boolean canMarshal(String cls)
Indicates whether or not the specified class can be marshalled, whether or not a definition exists.

Returns:
boolean true if marshallable.

Errai 3.0.1-SNAPSHOT

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