com.thoughtworks.xstream.mapper
Class AnnotationMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AnnotationMapper
- All Implemented Interfaces:
- com.thoughtworks.xstream.mapper.AnnotationConfiguration, com.thoughtworks.xstream.mapper.Mapper
public class AnnotationMapper
- extends com.thoughtworks.xstream.mapper.MapperWrapper
- implements com.thoughtworks.xstream.mapper.AnnotationConfiguration
A mapper that uses annotations to prepare the remaining mappers in the chain.
- Since:
- 1.3
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null |
Constructor Summary |
AnnotationMapper(com.thoughtworks.xstream.mapper.Mapper wrapped,
com.thoughtworks.xstream.converters.ConverterRegistry converterRegistry,
java.lang.ClassLoader classLoader,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
JVM jvm)
Construct an AnnotationMapper. |
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, isImmutableValueType, lookupMapperOfType, realClass, serializedMember, shouldSerializeMember |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationMapper
public AnnotationMapper(com.thoughtworks.xstream.mapper.Mapper wrapped,
com.thoughtworks.xstream.converters.ConverterRegistry converterRegistry,
java.lang.ClassLoader classLoader,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider,
JVM jvm)
- Construct an AnnotationMapper.
- Parameters:
wrapped
- the next Mapper
in the chain- Since:
- 1.3
realMember
public java.lang.String realMember(java.lang.Class type,
java.lang.String serialized)
- Specified by:
realMember
in interface com.thoughtworks.xstream.mapper.Mapper
- Overrides:
realMember
in class com.thoughtworks.xstream.mapper.MapperWrapper
serializedClass
public java.lang.String serializedClass(java.lang.Class type)
- Specified by:
serializedClass
in interface com.thoughtworks.xstream.mapper.Mapper
- Overrides:
serializedClass
in class com.thoughtworks.xstream.mapper.MapperWrapper
defaultImplementationOf
public java.lang.Class defaultImplementationOf(java.lang.Class type)
- Specified by:
defaultImplementationOf
in interface com.thoughtworks.xstream.mapper.Mapper
- Overrides:
defaultImplementationOf
in class com.thoughtworks.xstream.mapper.MapperWrapper
getLocalConverter
public com.thoughtworks.xstream.converters.Converter getLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName)
- Specified by:
getLocalConverter
in interface com.thoughtworks.xstream.mapper.Mapper
- Overrides:
getLocalConverter
in class com.thoughtworks.xstream.mapper.MapperWrapper
autodetectAnnotations
public void autodetectAnnotations(boolean mode)
- Specified by:
autodetectAnnotations
in interface com.thoughtworks.xstream.mapper.AnnotationConfiguration
processAnnotations
public void processAnnotations(java.lang.Class[] initialTypes)
- Specified by:
processAnnotations
in interface com.thoughtworks.xstream.mapper.AnnotationConfiguration
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.