|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.EnumMapper
Mapper that handles the special case of polymorphic enums in Java 1.5. This renames MyEnum$1 to MyEnum making it less bloaty in the XML and avoiding the need for an alias per enum value to be specified.
Nested Class Summary |
Nested classes inherited from class com.thoughtworks.xstream.mapper.Mapper |
Mapper.ImplicitCollectionMapping, Mapper.Null |
Constructor Summary | |
EnumMapper(ClassMapper wrapped)
Deprecated. As of 1.2, use EnumMapper(Mapper) |
|
EnumMapper(Mapper wrapped)
|
Method Summary | |
java.lang.String |
serializedClass(java.lang.Class type)
How a class name should be represented in its serialized form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnumMapper(Mapper wrapped)
public EnumMapper(ClassMapper wrapped)
EnumMapper(Mapper)
Method Detail |
public java.lang.String serializedClass(java.lang.Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |