public class AnnotationMapper extends MapperWrapper implements AnnotationConfiguration
Mapper.ImplicitCollectionMapping, Mapper.Null
Constructor and Description |
---|
AnnotationMapper(Mapper wrapped,
ConverterRegistry converterRegistry,
ConverterLookup converterLookup,
ClassLoaderReference classLoaderReference,
ReflectionProvider reflectionProvider)
Construct an AnnotationMapper.
|
AnnotationMapper(Mapper wrapped,
ConverterRegistry converterRegistry,
ConverterLookup converterLookup,
ClassLoader classLoader,
ReflectionProvider reflectionProvider,
JVM jvm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
autodetectAnnotations(boolean mode) |
Class |
defaultImplementationOf(Class type) |
Converter |
getLocalConverter(Class definedIn,
String fieldName) |
void |
processAnnotations(Class[] initialTypes) |
String |
realMember(Class type,
String serialized)
How a serialized member representation should be mapped back to a real member.
|
String |
serializedClass(Class type)
How a class name should be represented in its serialized form.
|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, serializedMember, shouldSerializeMember
public AnnotationMapper(Mapper wrapped, ConverterRegistry converterRegistry, ConverterLookup converterLookup, ClassLoaderReference classLoaderReference, ReflectionProvider reflectionProvider)
wrapped
- the next Mapper
in the chainpublic AnnotationMapper(Mapper wrapped, ConverterRegistry converterRegistry, ConverterLookup converterLookup, ClassLoader classLoader, ReflectionProvider reflectionProvider, JVM jvm)
AnnotationMapper(Mapper, ConverterRegistry, ConverterLookup, ClassLoaderReference, ReflectionProvider)
wrapped
- the next Mapper
in the chainpublic String realMember(Class type, String serialized)
Mapper
realMember
in interface Mapper
realMember
in class MapperWrapper
public String serializedClass(Class type)
Mapper
serializedClass
in interface Mapper
serializedClass
in class MapperWrapper
public Class defaultImplementationOf(Class type)
defaultImplementationOf
in interface Mapper
defaultImplementationOf
in class MapperWrapper
public Converter getLocalConverter(Class definedIn, String fieldName)
getLocalConverter
in interface Mapper
getLocalConverter
in class MapperWrapper
public void autodetectAnnotations(boolean mode)
autodetectAnnotations
in interface AnnotationConfiguration
public void processAnnotations(Class[] initialTypes)
processAnnotations
in interface AnnotationConfiguration
Copyright © 2004–2016 XStream. All rights reserved.