public abstract class AbstractReflectionConverter extends java.lang.Object implements Converter, Caching
Modifier and Type | Class and Description |
---|---|
static class |
AbstractReflectionConverter.DuplicateFieldException |
static class |
AbstractReflectionConverter.UnknownFieldException |
Modifier and Type | Field and Description |
---|---|
protected Mapper |
mapper |
protected ReflectionProvider |
reflectionProvider |
protected com.thoughtworks.xstream.core.util.SerializationMembers |
serializationMembers |
protected SerializationMethodInvoker |
serializationMethodInvoker
Deprecated.
As of 1.4.8, use
serializationMembers . |
Constructor and Description |
---|
AbstractReflectionConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canAccess(java.lang.Class type) |
protected void |
doMarshal(java.lang.Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
java.lang.Object |
doUnmarshal(java.lang.Object result,
HierarchicalStreamReader reader,
UnmarshallingContext context) |
void |
flushCache() |
protected java.lang.Object |
instantiateNewInstance(HierarchicalStreamReader reader,
UnmarshallingContext context) |
void |
marshal(java.lang.Object original,
HierarchicalStreamWriter writer,
MarshallingContext context)
Convert an object to textual data.
|
protected void |
marshallField(MarshallingContext context,
java.lang.Object newObj,
java.lang.reflect.Field field) |
protected java.lang.Object |
readResolve() |
protected boolean |
shouldUnmarshalField(java.lang.reflect.Field field) |
protected boolean |
shouldUnmarshalTransientFields() |
java.lang.Object |
unmarshal(HierarchicalStreamReader reader,
UnmarshallingContext context)
Convert textual data back into an object.
|
protected java.lang.Object |
unmarshallField(UnmarshallingContext context,
java.lang.Object result,
java.lang.Class type,
java.lang.reflect.Field field) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canConvert
protected final ReflectionProvider reflectionProvider
protected final Mapper mapper
protected transient SerializationMethodInvoker serializationMethodInvoker
serializationMembers
.protected transient com.thoughtworks.xstream.core.util.SerializationMembers serializationMembers
public AbstractReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider)
protected boolean canAccess(java.lang.Class type)
public void marshal(java.lang.Object original, HierarchicalStreamWriter writer, MarshallingContext context)
Converter
protected void doMarshal(java.lang.Object source, HierarchicalStreamWriter writer, MarshallingContext context)
protected void marshallField(MarshallingContext context, java.lang.Object newObj, java.lang.reflect.Field field)
public java.lang.Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context)
Converter
public java.lang.Object doUnmarshal(java.lang.Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
protected java.lang.Object unmarshallField(UnmarshallingContext context, java.lang.Object result, java.lang.Class type, java.lang.reflect.Field field)
protected boolean shouldUnmarshalTransientFields()
protected boolean shouldUnmarshalField(java.lang.reflect.Field field)
protected java.lang.Object instantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext context)
public void flushCache()
flushCache
in interface Caching
protected java.lang.Object readResolve()
Copyright © 2004–2024 XStream. All rights reserved.