org.codehaus.enunciate.modules.gwt
Class UUIDGWTMapper

java.lang.Object
  extended by org.codehaus.enunciate.modules.gwt.UUIDGWTMapper
All Implemented Interfaces:
CustomGWTMapper<java.util.UUID,java.lang.String>, GWTMapper<java.util.UUID,java.lang.String>

public class UUIDGWTMapper
extends java.lang.Object
implements CustomGWTMapper<java.util.UUID,java.lang.String>

Author:
Ryan Heaton

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

UUIDGWTMapper

public UUIDGWTMapper()
Method Detail

toGWT

public java.lang.String toGWT(java.util.UUID 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.UUID,java.lang.String>
Parameters:
jaxbObject - The jaxb object.
context - The mapping context.
Returns:
The GWT object.
Throws:
GWTMappingException

toJAXB

public java.util.UUID toJAXB(java.lang.String 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.UUID,java.lang.String>
Parameters:
gwtObject - The gwt object.
context - The mapping context.
Returns:
The JAXB object.
Throws:
GWTMappingException

getJaxbClass

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

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

getGwtClass

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

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