org.apache.shindig.protocol.conversion.xstream
Class InterfaceFieldAliasingMapper

java.lang.Object
  extended by com.thoughtworks.xstream.mapper.MapperWrapper
      extended by org.apache.shindig.protocol.conversion.xstream.InterfaceFieldAliasingMapper
All Implemented Interfaces:
com.thoughtworks.xstream.mapper.Mapper

public class InterfaceFieldAliasingMapper
extends com.thoughtworks.xstream.mapper.MapperWrapper

Maps Interfaces to Aliases used by BeanXStreamConverter


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null
 
Constructor Summary
InterfaceFieldAliasingMapper(com.thoughtworks.xstream.mapper.Mapper wrapped, WriterStack writerStack, List<InterfaceFieldAliasMapping> ifaList)
           
 
Method Summary
 String realMember(Class type, String serialized)
          
 String serializedMember(Class type, String memberName)
          
 
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, serializedClass, shouldSerializeMember
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterfaceFieldAliasingMapper

public InterfaceFieldAliasingMapper(com.thoughtworks.xstream.mapper.Mapper wrapped,
                                    WriterStack writerStack,
                                    List<InterfaceFieldAliasMapping> ifaList)
Parameters:
wrapped -
Method Detail

realMember

public String realMember(Class type,
                         String serialized)

Specified by:
realMember in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
realMember in class com.thoughtworks.xstream.mapper.MapperWrapper
See Also:
MapperWrapper.realMember(java.lang.Class, java.lang.String)

serializedMember

public String serializedMember(Class type,
                               String memberName)

Specified by:
serializedMember in interface com.thoughtworks.xstream.mapper.Mapper
Overrides:
serializedMember in class com.thoughtworks.xstream.mapper.MapperWrapper
See Also:
MapperWrapper.serializedMember(java.lang.Class, java.lang.String)


Copyright © 2007-2012. All Rights Reserved.