|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AttributeAliasingMapper
public class AttributeAliasingMapper
Mapper that allows aliasing of attribute names.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper |
|---|
Mapper.ImplicitCollectionMapping, Mapper.Null |
| Constructor Summary | |
|---|---|
AttributeAliasingMapper(Mapper wrapped)
|
|
| Method Summary | |
|---|---|
void |
addAliasFor(java.lang.String attributeName,
java.lang.String alias)
|
java.lang.String |
aliasForAttribute(java.lang.String attribute)
Get the alias for an attrbute's name. |
java.lang.String |
attributeForAlias(java.lang.String alias)
Get the attribut's name for an alias. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeAliasingMapper(Mapper wrapped)
| Method Detail |
|---|
public void addAliasFor(java.lang.String attributeName,
java.lang.String alias)
public java.lang.String aliasForAttribute(java.lang.String attribute)
Mapper
aliasForAttribute in interface MapperaliasForAttribute in class MapperWrapperattribute - the attribute
public java.lang.String attributeForAlias(java.lang.String alias)
Mapper
attributeForAlias in interface MapperattributeForAlias in class MapperWrapperalias - the alias
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||