public abstract class CustomXMLFormat<T>
extends javolution.xml.XMLFormat<T>
XMLFormats that are used by the
javolution serializer.APPENDABLE_XML, BOOLEAN_XML, BYTE_XML, CHARACTER_XML, CLASS_XML, COLLECTION_XML, CONFIGURABLE_XML, DOUBLE_XML, FAST_COLLECTION_XML, FAST_COMPARATOR_XML, FAST_MAP_XML, FLOAT_XML, INDEX_XML, INTEGER_XML, LONG_XML, MAP_XML, OBJECT_ARRAY_XML, OBJECT_XML, PERSISTENT_CONTEXT_XML, QNAME_XML, SHORT_XML, STRING_XML, TEXT_XML| Constructor and Description |
|---|
CustomXMLFormat()
Creates a new instance, super
XMLFormat constructor is
invoked with null. |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canConvert(Class<?> cls)
Used to determine if this
XMLFormat can handle the given class, both
during serialization and deserialization. |
Class<?> |
getTargetClass(Class<?> cls)
Used to determine the class that is used for writing the
class
attribute to the serialized xml. |
public CustomXMLFormat()
XMLFormat constructor is
invoked with null.public abstract boolean canConvert(Class<?> cls)
XMLFormat can handle the given class, both
during serialization and deserialization.cls - the class to checktrue if this XMLFormat serializes/deserializes instances of the provided class.public Class<?> getTargetClass(Class<?> cls)
class
attribute to the serialized xml. This is usefull if the given class
is a proxy.
This implementation just returns the provided class, subclasses may override this.
cls - the class to checkCopyright © 2009-2016. All Rights Reserved.