Class FieldAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.FieldAliasingMapper
- All Implemented Interfaces:
Mapper
Mapper that allows a field of a specific class to be replaced with a shorter alias.
- Author:
- Joe Walnes
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFieldAlias(String alias, Class type, String fieldName) voidaddFieldsToIgnore(Pattern pattern) Deprecated.voidDeprecated.As of 1.4.9 useElementIgnoringMapper.omitField(Class, String).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 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
-
FieldAliasingMapper
-
-
Method Details
-
addFieldAlias
-
addFieldsToIgnore
Deprecated.As of 1.4.9 useElementIgnoringMapper.addElementsToIgnore(Pattern). -
omitField
Deprecated.As of 1.4.9 useElementIgnoringMapper.omitField(Class, String). -
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
-
ElementIgnoringMapper.addElementsToIgnore(Pattern).