Note
'key' and 'value' is not the name of the generated tag. The children are serialized as normal elements and the implementation expects them in the order 'key'/'value'.
Supports Collections.singletonMap.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Overrides com. Implements com. |
| public Object | unmarshal(HierarchicalStreamReader
The stream to read the text from. reader, UnmarshallingContext context)Overrides com. Implements com. |
| MAP | back to summary |
|---|---|
| private static final Class<T> MAP | |
| SingletonMapConverter | back to summary |
|---|---|
| public SingletonMapConverter(Mapper mapper) Construct a SingletonMapConverter.
| |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Overrides com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Overrides com. Implements com. Doc from com. Convert textual data back into an object.
| |