Top Description Fields Constructors Methods
com.thoughtworks.xstream.mapper

public Class AttributeAliasingMapper

extends AbstractAttributeAliasingMapper
Class Inheritance

Mapper that allows aliasing of attribute names.
Authors
Jörg Schaible, Guilherme Silveira
Since
1.2

Field Summary

Inherited from com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper:
aliasToNamenameToAlias

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public String
Inherited from com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper:
addAliasForreadResolve

Constructor Detail

AttributeAliasingMapperback to summary
public AttributeAliasingMapper(Mapper wrapped)

Method Detail

aliasForAttributeback to summary
public String aliasForAttribute(String attribute)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.aliasForAttribute.

Implements com.thoughtworks.xstream.mapper.Mapper.aliasForAttribute.

Doc from com.thoughtworks.xstream.mapper.Mapper.aliasForAttribute.

Get the alias for an attribute's name.

Parameters
attribute:String

the attribute

Returns:String

the alias

attributeForAliasback to summary
public String attributeForAlias(String alias)

Overrides com.thoughtworks.xstream.mapper.MapperWrapper.attributeForAlias.

Implements com.thoughtworks.xstream.mapper.Mapper.attributeForAlias.

Doc from com.thoughtworks.xstream.mapper.Mapper.attributeForAlias.

Get the attribute's name for an alias.

Parameters
alias:String

the alias

Returns:String

the attribute's name