public class

AttributeAliasingMapper

extends AbstractAttributeAliasingMapper
java.lang.Object
   ↳ com.thoughtworks.xstream.mapper.MapperWrapper
     ↳ com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper
       ↳ com.thoughtworks.xstream.mapper.AttributeAliasingMapper

Class Overview

Mapper that allows aliasing of attribute names.

Summary

[Expand]
Inherited Fields
From class com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper
Public Constructors
AttributeAliasingMapper(Mapper wrapped)
Public Methods
String aliasForAttribute(String attribute)
Get the alias for an attribute's name.
String attributeForAlias(String alias)
Get the attribute's name for an alias.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.mapper.AbstractAttributeAliasingMapper
From class com.thoughtworks.xstream.mapper.MapperWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.mapper.Mapper

Public Constructors

public AttributeAliasingMapper (Mapper wrapped)

Public Methods

public String aliasForAttribute (String attribute)

Get the alias for an attribute's name.

Parameters
attribute the attribute
Returns
  • the alias

public String attributeForAlias (String alias)

Get the attribute's name for an alias.

Parameters
alias the alias
Returns
  • the attribute's name