public class EnumMapConverter extends MapConverter
| Constructor and Description |
|---|
EnumMapConverter(Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
void |
marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
createCollection, populateMap, populateMap, putCurrentEntryIntoMapmapper, readBareItem, readCompleteItem, readItem, writeBareItem, writeCompleteItem, writeItem, writeNullItempublic EnumMapConverter(Mapper mapper)
public boolean canConvert(java.lang.Class type)
ConverterMatchercanConvert in interface ConverterMatchercanConvert in class MapConvertertype - the Class representing the object type to be convertedpublic void marshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convertermarshal in interface Convertermarshal in class MapConvertersource - The object to be marshalled.writer - A stream to write to.context - A context that allows nested objects to be processed by XStream.public java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converterunmarshal in interface Converterunmarshal in class MapConverterreader - The stream to read the text from.Copyright © 2004–2024 XStream. All rights reserved.