public class ConverterDecorator extends Object implements com.thoughtworks.xstream.converters.Converter
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
classToConvert |
protected com.thoughtworks.xstream.converters.Converter |
converter |
Constructor and Description |
---|
ConverterDecorator(Class<?> classToConvert,
com.thoughtworks.xstream.converters.Converter converter) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
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) |
protected final com.thoughtworks.xstream.converters.Converter converter
protected final Class<?> classToConvert
public ConverterDecorator(Class<?> classToConvert, com.thoughtworks.xstream.converters.Converter converter)
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal
in interface com.thoughtworks.xstream.converters.Converter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.