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 classstatic classprivate static classprivate static classprivate static interfaceprivate classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Mapperprivate ReflectionProviderprotected final ReflectionProviderprotected SerializationMembersprotected SerializationMethodInvokerDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voiddoMarshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) doUnmarshal(Object result, HierarchicalStreamReader reader, UnmarshallingContext context) voidprivate voidhandleUnknownField(Class classDefiningField, String fieldName, Class resultType, String originalNodeName) protected ObjectinstantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext context) voidmarshal(Object original, HierarchicalStreamWriter writer, MarshallingContext context) Convert an object to textual data.protected voidmarshallField(MarshallingContext context, Object newObj, Field field) private Classprotected Objectprotected booleanshouldUnmarshalField(Field field) protected booleanunmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Convert textual data back into an object.protected ObjectunmarshallField(UnmarshallingContext context, Object result, Class type, Field field) private voidwriteValueToImplicitCollection(Object value, Map implicitCollections, Object result, AbstractReflectionConverter.FieldLocation fieldLocation) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ConverterConvert an object to textual data. -
doMarshal
protected void doMarshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) -
marshallField
-
unmarshal
Description copied from interface:ConverterConvert 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:
flushCachein interfaceCaching
-
readResolve
-
serializationMembers.