org.codehaus.enunciate.modules.gwt
Class DefaultGWTMapper
java.lang.Object
org.codehaus.enunciate.modules.gwt.DefaultGWTMapper
- All Implemented Interfaces:
- GWTMapper
public class DefaultGWTMapper
- extends java.lang.Object
- implements GWTMapper
Default mapper assumes the class is supported by GWT.
- Author:
- Ryan Heaton
|
Method Summary |
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 |
INSTANCE
public static final GWTMapper INSTANCE
DefaultGWTMapper
public DefaultGWTMapper()
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