edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.mapper
Class AttributeAliasingMapper
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.mapper.MapperWrapper
edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.mapper.AttributeAliasingMapper
- All Implemented Interfaces:
- Mapper
public class AttributeAliasingMapper
- extends MapperWrapper
Mapper that allows aliasing of attribute names.
- Since:
- 1.2
- Author:
- Jörg Schaible, Guilherme Silveira
Methods inherited from class edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.mapper.MapperWrapper |
aliasForAttribute, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, 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)
addAliasFor
public void addAliasFor(String attributeName,
String alias)
aliasForAttribute
public String aliasForAttribute(String attribute)
- Description copied from interface:
Mapper
- Get the alias for an attrbute'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 attribut'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 © 2010 Internet2. All Rights Reserved.