org.codehaus.enunciate.modules.gwt
Interface GWTMapper<J,G>

All Known Subinterfaces:
CustomGWTMapper<J,G>
All Known Implementing Classes:
AdaptingGWTMapper, ArrayGWTMapper, BaseGWTMapper, BigDecimalGWTMapper, BigIntegerGWTMapper, CalendarGWTMapper, CollectionGWTMapper, DataHandlerGWTMapper, DefaultGWTMapper, EnumGWTMapper, MapGWTMapper, QNameGWTMapper, URIGWTMapper, UUIDGWTMapper, XMLGregorianCalendarGWTMapper

public interface GWTMapper<J,G>

Maps JAXB objects to GWT objects, and vice-versa. If a mapper exists for a certain JAXB class, it is assumed to exist in the "gwt" package relative to the JAXB class package, same name with "GWTMapper" appended to the class name.

Author:
Ryan Heaton

Method Summary
 G toGWT(J jaxbObject, GWTMappingContext context)
          Maps a JAXB object to a GWT object.
 J toJAXB(G gwtObject, GWTMappingContext context)
          Maps a GWT object to a JAXB object.
 

Method Detail

toGWT

G toGWT(J jaxbObject,
        GWTMappingContext context)
        throws GWTMappingException
Maps a JAXB object to a GWT object.

Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The GWT object.
Throws:
GWTMappingException

toJAXB

J toJAXB(G gwtObject,
         GWTMappingContext context)
         throws GWTMappingException
Maps a GWT object to a JAXB object.

Parameters:
gwtObject - The gwt object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
GWTMappingException