Class OuterClassMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.OuterClassMapper
Mapper that uses a more meaningful alias for the field in an inner class (this$0) that refers to the outer class.
- Author:
- Joe Walnes
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Constructor Summary
ConstructorsConstructorDescriptionOuterClassMapper(Mapper wrapped) OuterClassMapper(Mapper wrapped, String alias) -
Method Summary
Modifier and TypeMethodDescriptionvoidrealMember(Class type, String serialized) How a serialized member representation should be mapped back to a real member.serializedMember(Class type, String memberName) How a class member should be represented in its serialized form.Methods inherited from class MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, serializedClass, shouldSerializeMember
-
Constructor Details
-
OuterClassMapper
-
OuterClassMapper
-
-
Method Details
-
serializedMember
Description copied from interface:MapperHow a class member should be represented in its serialized form.- Specified by:
serializedMemberin interfaceMapper- Overrides:
serializedMemberin classMapperWrapper
-
realMember
Description copied from interface:MapperHow a serialized member representation should be mapped back to a real member.- Specified by:
realMemberin interfaceMapper- Overrides:
realMemberin classMapperWrapper
-
flushCache
public void flushCache()- Specified by:
flushCachein interfaceCaching
-