Errai 3.0.1-SNAPSHOT

org.jboss.errai.marshalling.rebind.api
Class GeneratorMappingContext

java.lang.Object
  extended by org.jboss.errai.marshalling.rebind.api.GeneratorMappingContext
All Implemented Interfaces:
MappingContext, ServerMappingContext

public class GeneratorMappingContext
extends Object
implements ServerMappingContext

Author:
Mike Brock

Constructor Summary
GeneratorMappingContext(MarshallerGeneratorFactory marshallerGeneratorFactory, ClassStructureBuilder<?> classStructureBuilder, ArrayMarshallerCallback callback)
           
 
Method Summary
 boolean canMarshal(String clazz)
          Indicates whether or not the specified class can be marshalled, whether or not a definition exists.
 ArrayMarshallerCallback getArrayMarshallerCallback()
           
 ClassStructureBuilder<?> getClassStructureBuilder()
           
 DefinitionsFactory getDefinitionsFactory()
           
 Marshaller<Object> getMarshaller(String clazz)
          Returns the Marshaller instance that can handle the given type.
 MarshallerGeneratorFactory getMarshallerGeneratorFactory()
           
 boolean hasMarshaller(String clazzName)
           
 boolean isExposed(MetaClassMember member, String marshallerClass)
           
 boolean isRendered(MetaClass metaClass)
           
 void markExposed(MetaClassMember member, String marshallerClass)
           
 void markRendered(MetaClass metaClass)
           
 void registerGeneratedMarshaller(String clazzName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorMappingContext

public GeneratorMappingContext(MarshallerGeneratorFactory marshallerGeneratorFactory,
                               ClassStructureBuilder<?> classStructureBuilder,
                               ArrayMarshallerCallback callback)
Method Detail

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()

Errai 3.0.1-SNAPSHOT

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