org.codehaus.enunciate.modules.gwt
Class AdaptingGWTMapper

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

public class AdaptingGWTMapper
extends java.lang.Object
implements CustomGWTMapper

GWT mapper that applies an XmlAdapter before mapping to an GWT object.

Author:
Ryan Heaton

Constructor Summary
AdaptingGWTMapper(javax.xml.bind.annotation.adapters.XmlAdapter adapter, GWTMapper adaptingMapper, java.lang.Class jaxbClass, java.lang.Class gwtClass)
           
 
Method Summary
 java.lang.Class getGwtClass()
          The GWT class supported by this mapper.
 java.lang.Class getJaxbClass()
          The JAXB class supported by this mapper.
 java.lang.Object toGWT(java.lang.Object jaxbObject, GWTMappingContext context)
          Maps a JAXB object to a GWT object.
 java.lang.Object toJAXB(java.lang.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
 

Constructor Detail

AdaptingGWTMapper

public AdaptingGWTMapper(javax.xml.bind.annotation.adapters.XmlAdapter adapter,
                         GWTMapper adaptingMapper,
                         java.lang.Class jaxbClass,
                         java.lang.Class gwtClass)
Method Detail

toGWT

public java.lang.Object toGWT(java.lang.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 java.lang.Object toJAXB(java.lang.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

getJaxbClass

public java.lang.Class getJaxbClass()
Description copied from interface: CustomGWTMapper
The JAXB class supported by this mapper.

Specified by:
getJaxbClass in interface CustomGWTMapper
Returns:
The JAXB class supported by this mapper.

getGwtClass

public java.lang.Class getGwtClass()
Description copied from interface: CustomGWTMapper
The GWT class supported by this mapper.

Specified by:
getGwtClass in interface CustomGWTMapper
Returns:
The GWT class supported by this mapper.