org.jboss.errai.marshalling.rebind.api
Class GeneratorMappingContext
java.lang.Object
org.jboss.errai.marshalling.rebind.api.GeneratorMappingContext
- All Implemented Interfaces:
- MappingContext, ServerMappingContext
public class GeneratorMappingContext
- extends Object
- implements ServerMappingContext
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratorMappingContext
public GeneratorMappingContext(MarshallerGeneratorFactory marshallerGeneratorFactory,
ClassStructureBuilder<?> classStructureBuilder,
ArrayMarshallerCallback callback)
getMarshallerGeneratorFactory
public MarshallerGeneratorFactory getMarshallerGeneratorFactory()
getDefinitionsFactory
public DefinitionsFactory getDefinitionsFactory()
- Specified by:
getDefinitionsFactory
in interface ServerMappingContext
registerGeneratedMarshaller
public void registerGeneratedMarshaller(String clazzName)
hasMarshaller
public boolean hasMarshaller(String clazzName)
- Specified by:
hasMarshaller
in interface MappingContext
getMarshaller
public Marshaller<Object> getMarshaller(String clazz)
- Description copied from interface:
MappingContext
- Returns the Marshaller instance that can handle the given type.
- Specified by:
getMarshaller
in interface MappingContext
- 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.
canMarshal
public boolean canMarshal(String clazz)
- Description copied from interface:
MappingContext
- Indicates whether or not the specified class can be marshalled, whether or not a definition exists.
- Specified by:
canMarshal
in interface MappingContext
- Returns:
- boolean true if marshallable.
markRendered
public void markRendered(MetaClass metaClass)
isRendered
public boolean isRendered(MetaClass metaClass)
getArrayMarshallerCallback
public ArrayMarshallerCallback getArrayMarshallerCallback()
markExposed
public void markExposed(MetaClassMember member,
String marshallerClass)
isExposed
public boolean isExposed(MetaClassMember member,
String marshallerClass)
getClassStructureBuilder
public ClassStructureBuilder<?> getClassStructureBuilder()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.