com.liferay.portal.kernel.lar.xstream
Class BaseXStreamConverter
java.lang.Object
com.liferay.portal.kernel.lar.xstream.BaseXStreamConverter
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
- Direct Known Subclasses:
- FileEntryConverter, FileVersionConverter, FolderConverter
public abstract class BaseXStreamConverter
- extends Object
- implements com.thoughtworks.xstream.converters.Converter
Method Summary |
abstract boolean |
canConvert(Class clazz)
|
protected abstract List<String> |
getFields()
|
void |
marshal(Object object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter,
com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
|
abstract Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseXStreamConverter
public BaseXStreamConverter()
canConvert
public abstract boolean canConvert(Class clazz)
- Specified by:
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
marshal
public void marshal(Object object,
com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter,
com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
- Specified by:
marshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
public abstract Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
- Specified by:
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
getFields
protected abstract List<String> getFields()