public class CGLibProxyFormat extends CustomXMLFormat<Object>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CGLibProxyFormat.CGLibProxyMarker
This class is used as a marker class - written to the class attribute
on serialization and checked on deserialization (via
canConvert(Class). |
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 |
|---|
CGLibProxyFormat() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isReferenceable() |
Object |
newInstance(Class<Object> cls,
javolution.xml.XMLFormat.InputElement xml) |
void |
read(javolution.xml.XMLFormat.InputElement arg0,
Object arg1) |
void |
write(Object obj,
javolution.xml.XMLFormat.OutputElement xml) |
public boolean canConvert(Class<?> cls)
XMLFormat can handle the given class, both
during serialization and deserialization.canConvert in class CustomXMLFormat<Object>cls - the class to checktrue if this XMLFormat serializes/deserializes instances of the provided class.public Class<?> getTargetClass(Class<?> cls)
This implementation returns a marker class so that we know on deserialization that we should handle/deserialize the serialized xml.
getTargetClass in class CustomXMLFormat<Object>the - proxy classCGLibProxyFormat.CGLibProxyMarker.canConvert(Class)public boolean isReferenceable()
isReferenceable in class javolution.xml.XMLFormat<Object>public Object newInstance(Class<Object> cls, javolution.xml.XMLFormat.InputElement xml) throws javolution.xml.stream.XMLStreamException
newInstance in class javolution.xml.XMLFormat<Object>javolution.xml.stream.XMLStreamExceptionpublic void read(javolution.xml.XMLFormat.InputElement arg0,
Object arg1)
throws javolution.xml.stream.XMLStreamException
read in class javolution.xml.XMLFormat<Object>javolution.xml.stream.XMLStreamExceptionCopyright © 2009-2016. All Rights Reserved.