|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.modules.amf.BaseAMFMapper<J,G>
public abstract class BaseAMFMapper<J,G>
Base implementation of an AMFMapper. If a custom mapper exists for a certain JAXB class, it is assumed to exist in the "amf" package relative to the JAXB class package, same name, with "AMFMapper" appended to the class name. Since it's generated, it will likely extend this base mapper class.
| Constructor Summary | |
|---|---|
protected |
BaseAMFMapper(java.lang.Class<J> jaxbClass,
java.lang.Class<G> amfClass,
java.lang.String... properties)
Construct a base AMF mapper. |
| Method Summary | |
|---|---|
static java.lang.String[] |
append(java.lang.String[] args1,
java.lang.String... args2)
Utility for appending one string array to another. |
protected java.beans.PropertyDescriptor |
findProperty(java.lang.Class clazz,
java.lang.String property)
Find the specified property for the given class. |
java.lang.Class<G> |
getAmfClass()
The AMF class applicable to this mapper. |
java.lang.Class<J> |
getJaxbClass()
The JAXB class applicable to this mapper. |
G |
toAMF(J jaxbObject,
AMFMappingContext context)
Map a JAXB object to an AMF object. |
J |
toJAXB(G amfObject,
AMFMappingContext context)
Map an AMF 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 |
|---|
protected BaseAMFMapper(java.lang.Class<J> jaxbClass,
java.lang.Class<G> amfClass,
java.lang.String... properties)
jaxbClass - The JAXB class to map.amfClass - The AMF class to map.properties - The properties of the JAXB class that will be mapped to corresponding properties of the AMF class.| Method Detail |
|---|
protected java.beans.PropertyDescriptor findProperty(java.lang.Class clazz,
java.lang.String property)
clazz - The class.property - The property.
public G toAMF(J jaxbObject,
AMFMappingContext context)
throws AMFMappingException
toAMF in interface AMFMapper<J,G>jaxbObject - The JAXB object.context - The mapping context.
AMFMappingException
public J toJAXB(G amfObject,
AMFMappingContext context)
throws AMFMappingException
toJAXB in interface AMFMapper<J,G>amfObject - The AMF object to map.context - The mapping context.
AMFMappingException
public static java.lang.String[] append(java.lang.String[] args1,
java.lang.String... args2)
args1 - The first set of args.args2 - The second set of args.
public java.lang.Class<J> getJaxbClass()
getJaxbClass in interface CustomAMFMapper<J,G>public java.lang.Class<G> getAmfClass()
getAmfClass in interface CustomAMFMapper<J,G>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||