org.codehaus.enunciate.modules.gwt
Class CalendarGWTMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.gwt.CalendarGWTMapper
All Implemented Interfaces:
CustomGWTMapper<java.util.Calendar,java.util.Date>, GWTMapper<java.util.Calendar,java.util.Date>

public class CalendarGWTMapper
extends java.lang.Object
implements CustomGWTMapper<java.util.Calendar,java.util.Date>

Author:
Ryan Heaton

Constructor Summary
CalendarGWTMapper()
           
 
Method Summary
 java.lang.Class<? extends java.util.Date> getGwtClass()
          The GWT class supported by this mapper.
 java.lang.Class<? extends java.util.Calendar> getJaxbClass()
          The JAXB class supported by this mapper.
 java.util.Date toGWT(java.util.Calendar jaxbObject, GWTMappingContext context)
          Maps a JAXB object to a GWT object.
 java.util.Calendar toJAXB(java.util.Date 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

CalendarGWTMapper

public CalendarGWTMapper()
Method Detail

toGWT

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

Specified by:
toGWT in interface GWTMapper<java.util.Calendar,java.util.Date>
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The GWT object.
Throws:
GWTMappingException

toJAXB

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

Specified by:
toJAXB in interface GWTMapper<java.util.Calendar,java.util.Date>
Parameters:
gwtObject - The gwt object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
GWTMappingException

getJaxbClass

public java.lang.Class<? extends java.util.Calendar> getJaxbClass()
Description copied from interface: CustomGWTMapper
The JAXB class supported by this mapper.

Specified by:
getJaxbClass in interface CustomGWTMapper<java.util.Calendar,java.util.Date>
Returns:
The JAXB class supported by this mapper.

getGwtClass

public java.lang.Class<? extends java.util.Date> getGwtClass()
Description copied from interface: CustomGWTMapper
The GWT class supported by this mapper.

Specified by:
getGwtClass in interface CustomGWTMapper<java.util.Calendar,java.util.Date>
Returns:
The GWT class supported by this mapper.