public class RemoteConfigConverter extends Object implements com.thoughtworks.xstream.converters.Converter
| Constructor and Description |
|---|
RemoteConfigConverter(com.thoughtworks.xstream.XStream xStream)
Create remote config converter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
protected boolean |
isLegacyNode(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Is the current reader node a legacy node?
|
protected Object |
legacyUnmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Legacy unmarshalling of remote config
|
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
public RemoteConfigConverter(com.thoughtworks.xstream.XStream xStream)
xStream - XStream used for remote configuration conversionpublic boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcherpublic void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Converterprotected boolean isLegacyNode(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
reader - stream readercontext - usage context of readerprotected Object legacyUnmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
reader - stream readercontext - usage context of readerpublic Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.ConverterCopyright © 2007–2020. All rights reserved.