Class AttributeAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper
com.thoughtworks.xstream.mapper.AttributeAliasingMapper
- All Implemented Interfaces:
Mapper
Mapper that allows aliasing of attribute names.
- Since:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields inherited from class AbstractAttributeAliasingMapper
aliasToName, nameToAlias -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliasForAttribute(String attribute) Get the alias for an attribute's name.attributeForAlias(String alias) Get the attribute's name for an alias.Methods inherited from class AbstractAttributeAliasingMapper
addAliasFor, readResolveMethods inherited from class MapperWrapper
aliasForAttribute, aliasForSystemAttribute, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
-
Constructor Details
-
AttributeAliasingMapper
-
-
Method Details
-
aliasForAttribute
Description copied from interface:MapperGet the alias for an attribute's name.- Specified by:
aliasForAttributein interfaceMapper- Overrides:
aliasForAttributein classMapperWrapper- Parameters:
attribute- the attribute- Returns:
- the alias
-
attributeForAlias
Description copied from interface:MapperGet the attribute's name for an alias.- Specified by:
attributeForAliasin interfaceMapper- Overrides:
attributeForAliasin classMapperWrapper- Parameters:
alias- the alias- Returns:
- the attribute's name
-