@NotThreadSafe public abstract class MappableConverter extends Object implements Converter, XStreamStreamer.Converter
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_ATTRIBUTE
Class attribute.
|
static String |
TYPE_ATTRIBUTE
Type attribute.
|
| Constructor and Description |
|---|
MappableConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected XStream |
getXStream()
Gets the XStream instance.
|
void |
marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
boolean |
setUp(XStreamStreamer streamer)
Sets up this.
|
void |
tearDown()
Tears down what has been set up.
|
Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context) |
public static final String CLASS_ATTRIBUTE
public static final String TYPE_ATTRIBUTE
public final void marshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context)
marshal in interface Converterpublic boolean setUp(XStreamStreamer streamer)
setUp in interface XStreamStreamer.Converterstreamer - The calling streamer.public void tearDown()
tearDown in interface XStreamStreamer.Converterpublic final Object unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
unmarshal in interface Converterprotected final XStream getXStream()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.