public class SerializableConverter extends AbstractReflectionConverter
AbstractReflectionConverter.DuplicateFieldException
mapper, reflectionProvider, serializationMethodInvoker
Constructor and Description |
---|
SerializableConverter(Mapper mapper,
ReflectionProvider reflectionProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type)
Determines whether the converter can marshall a particular type.
|
void |
doMarshal(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
protected void |
doMarshalConditionally(Object source,
HierarchicalStreamWriter writer,
MarshallingContext context) |
Object |
doUnmarshal(Object result,
HierarchicalStreamReader reader,
UnmarshallingContext context) |
protected Object |
doUnmarshalConditionally(Object result,
HierarchicalStreamReader reader,
UnmarshallingContext context) |
protected List |
hierarchyFor(Class type) |
instantiateNewInstance, marshal, marshallField, shouldUnmarshalTransientFields, unmarshal, unmarshallField
public SerializableConverter(Mapper mapper, ReflectionProvider reflectionProvider)
public boolean canConvert(Class type)
ConverterMatcher
type
- the Class representing the object type to be convertedpublic void doMarshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
doMarshal
in class AbstractReflectionConverter
public Object doUnmarshal(Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
doUnmarshal
in class AbstractReflectionConverter
protected void doMarshalConditionally(Object source, HierarchicalStreamWriter writer, MarshallingContext context)
protected Object doUnmarshalConditionally(Object result, HierarchicalStreamReader reader, UnmarshallingContext context)
Copyright © 2016 Internet2. All rights reserved.