|
||||||||||
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.ArrayMapper
public class ArrayMapper
Mapper that detects arrays and changes the name so it can identified as an array (for example Foo[] gets serialized as foo-array). Supports multi-dimensional arrays.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
---|
Mapper.ImplicitCollectionMapping, Mapper.Null |
Constructor Summary | |
---|---|
ArrayMapper(ClassMapper wrapped)
Deprecated. As of 1.2, use ArrayMapper(Mapper) |
|
ArrayMapper(Mapper wrapped)
|
Method Summary | |
---|---|
java.lang.Class |
realClass(java.lang.String elementName)
How a serialized class representation should be mapped back to a real class. |
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 ArrayMapper(Mapper wrapped)
public ArrayMapper(ClassMapper wrapped)
ArrayMapper(Mapper)
Method Detail |
---|
public java.lang.String serializedClass(java.lang.Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
public java.lang.Class realClass(java.lang.String elementName)
Mapper
realClass
in interface Mapper
realClass
in class MapperWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |