Class AbstractReflectionConverter
java.lang.Object
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
- All Implemented Interfaces:
Converter
,ConverterMatcher
,Caching
- Direct Known Subclasses:
ReflectionConverter
,SerializableConverter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
static class
private static class
private static class
private static interface
private class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Mapper
private ReflectionProvider
protected final ReflectionProvider
protected SerializationMembers
protected SerializationMethodInvoker
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReflectionConverter
(Mapper mapper, ReflectionProvider reflectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
doMarshal
(Object source, HierarchicalStreamWriter writer, MarshallingContext context) doUnmarshal
(Object result, HierarchicalStreamReader reader, UnmarshallingContext context) void
private void
handleUnknownField
(Class classDefiningField, String fieldName, Class resultType, String originalNodeName) protected Object
instantiateNewInstance
(HierarchicalStreamReader reader, UnmarshallingContext context) void
marshal
(Object original, HierarchicalStreamWriter writer, MarshallingContext context) Convert an object to textual data.protected void
marshallField
(MarshallingContext context, Object newObj, Field field) private Class
protected Object
protected boolean
shouldUnmarshalField
(Field field) protected boolean
unmarshal
(HierarchicalStreamReader reader, UnmarshallingContext context) Convert textual data back into an object.protected Object
unmarshallField
(UnmarshallingContext context, Object result, Class type, Field field) private void
writeValueToImplicitCollection
(Object value, Map implicitCollections, Object result, AbstractReflectionConverter.FieldLocation fieldLocation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
-
Field Details
-
reflectionProvider
-
mapper
-
serializationMethodInvoker
Deprecated.As of 1.4.8, useserializationMembers
. -
serializationMembers
-
pureJavaReflectionProvider
-
-
Constructor Details
-
AbstractReflectionConverter
-
-
Method Details
-
canAccess
-
marshal
Description copied from interface:Converter
Convert an object to textual data. -
doMarshal
protected void doMarshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) -
marshallField
-
unmarshal
Description copied from interface:Converter
Convert textual data back into an object. -
doUnmarshal
public Object doUnmarshal(Object result, HierarchicalStreamReader reader, UnmarshallingContext context) -
unmarshallField
protected Object unmarshallField(UnmarshallingContext context, Object result, Class type, Field field) -
shouldUnmarshalTransientFields
protected boolean shouldUnmarshalTransientFields() -
shouldUnmarshalField
-
handleUnknownField
-
writeValueToImplicitCollection
private void writeValueToImplicitCollection(Object value, Map implicitCollections, Object result, AbstractReflectionConverter.FieldLocation fieldLocation) -
readDeclaringClass
-
instantiateNewInstance
protected Object instantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext context) -
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceCaching
-
readResolve
-
serializationMembers
.