com.thoughtworks.xstream.mapper
Class AttributeAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper
com.thoughtworks.xstream.mapper.AttributeAliasingMapper
- All Implemented Interfaces:
- Mapper
public class AttributeAliasingMapper
- extends AbstractAttributeAliasingMapper
Mapper that allows aliasing of attribute names.
- Since:
- 1.2
- Author:
- Jörg Schaible, Guilherme Silveira
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
aliasForAttribute, aliasForSystemAttribute, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeAliasingMapper
public AttributeAliasingMapper(Mapper wrapped)
aliasForAttribute
public String aliasForAttribute(String attribute)
- Description copied from interface:
Mapper
- Get the alias for an attribute's name.
- Specified by:
aliasForAttribute
in interface Mapper
- Overrides:
aliasForAttribute
in class MapperWrapper
- Parameters:
attribute
- the attribute
- Returns:
- the alias
attributeForAlias
public String attributeForAlias(String alias)
- Description copied from interface:
Mapper
- Get the attribute's name for an alias.
- Specified by:
attributeForAlias
in interface Mapper
- Overrides:
attributeForAlias
in class MapperWrapper
- Parameters:
alias
- the alias
- Returns:
- the attribute's name
Copyright © 2004-2014 XStream. All Rights Reserved.