org.codehaus.enunciate.modules.gwt
Class DefaultGWTMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.gwt.DefaultGWTMapper
All Implemented Interfaces:
GWTMapper

public class DefaultGWTMapper
extends Object
implements GWTMapper

Default mapper assumes the class is supported by GWT.

Author:
Ryan Heaton

Field Summary
static GWTMapper INSTANCE
           
 
Constructor Summary
DefaultGWTMapper()
           
 
Method Summary
 Object toGWT(Object jaxbObject, GWTMappingContext context)
          Maps a JAXB object to a GWT object.
 Object toJAXB(Object gwtObject, GWTMappingContext context)
          Maps a GWT object to a JAXB object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final GWTMapper INSTANCE
Constructor Detail

DefaultGWTMapper

public DefaultGWTMapper()
Method Detail

toGWT

public Object toGWT(Object jaxbObject,
                    GWTMappingContext context)
             throws GWTMappingException
Description copied from interface: GWTMapper
Maps a JAXB object to a GWT object.

Specified by:
toGWT in interface GWTMapper
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The GWT object.
Throws:
GWTMappingException

toJAXB

public Object toJAXB(Object gwtObject,
                     GWTMappingContext context)
              throws GWTMappingException
Description copied from interface: GWTMapper
Maps a GWT object to a JAXB object.

Specified by:
toJAXB in interface GWTMapper
Parameters:
gwtObject - The gwt object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
GWTMappingException