Package com.thoughtworks.xstream.mapper
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOuterClassMapper
(Mapper wrapped) OuterClassMapper
(Mapper wrapped, String alias) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private String[]
getInnerFieldNames
(Class type) realMember
(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 com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, serializedClass, shouldSerializeMember
-
Field Details
-
EMPTY_NAMES
-
alias
-
innerFields
-
-
Constructor Details
-
OuterClassMapper
-
OuterClassMapper
-
-
Method Details
-
serializedMember
Description copied from interface:Mapper
How a class member should be represented in its serialized form.- Specified by:
serializedMember
in interfaceMapper
- Overrides:
serializedMember
in classMapperWrapper
-
realMember
Description copied from interface:Mapper
How a serialized member representation should be mapped back to a real member.- Specified by:
realMember
in interfaceMapper
- Overrides:
realMember
in classMapperWrapper
-
getInnerFieldNames
-
flushCache
public void flushCache()- Specified by:
flushCache
in interfaceCaching
-