org.codehaus.enunciate.modules.gwt
Class CollectionGWTMapper
java.lang.Object
org.codehaus.enunciate.modules.gwt.CollectionGWTMapper
- All Implemented Interfaces:
- GWTMapper<java.util.Collection,java.util.Collection>
public class CollectionGWTMapper
- extends java.lang.Object
- implements GWTMapper<java.util.Collection,java.util.Collection>
- Author:
- Ryan Heaton
|
Constructor Summary |
CollectionGWTMapper(java.lang.Class<? extends java.util.Collection> collectionType,
java.lang.reflect.Type defaultItemType,
javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapterInfo,
javax.xml.bind.annotation.XmlElement elementInfo)
|
|
Method Summary |
static java.util.Collection |
newCollectionInstance(java.lang.Class collectionType)
Create a new instance of something of the specified collection type. |
java.util.Collection |
toGWT(java.util.Collection jaxbObject,
GWTMappingContext context)
Maps a JAXB object to a GWT object. |
java.util.Collection |
toJAXB(java.util.Collection 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 |
CollectionGWTMapper
public CollectionGWTMapper(java.lang.Class<? extends java.util.Collection> collectionType,
java.lang.reflect.Type defaultItemType,
javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter adapterInfo,
javax.xml.bind.annotation.XmlElement elementInfo)
toGWT
public java.util.Collection toGWT(java.util.Collection 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.Collection,java.util.Collection>
- Parameters:
jaxbObject - The jaxb object.context - The mapping context.
- Returns:
- The GWT object.
- Throws:
GWTMappingException
toJAXB
public java.util.Collection toJAXB(java.util.Collection 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.Collection,java.util.Collection>
- Parameters:
gwtObject - The gwt object.context - The mapping context.
- Returns:
- The JAXB object.
- Throws:
GWTMappingException
newCollectionInstance
public static java.util.Collection newCollectionInstance(java.lang.Class collectionType)
- Create a new instance of something of the specified collection type.
- Parameters:
collectionType - The collection type.
- Returns:
- the new instance.