org.jboss.errai.marshalling.client.api
Interface MappingContext
- All Known Subinterfaces:
- ServerMappingContext
- All Known Implementing Classes:
- GeneratorMappingContext
public interface MappingContext
- Author:
- Mike Brock
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.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.