Class ClassNameAliasingMapper

  • All Implemented Interfaces:
    com.thoughtworks.xstream.mapper.Mapper

    public class ClassNameAliasingMapper
    extends com.thoughtworks.xstream.mapper.ClassAliasingMapper
    Class Aliasing Mapper that shortens the class names.
    Author:
    Sass
    • 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

      Constructors 
      Constructor Description
      ClassNameAliasingMapper​(com.thoughtworks.xstream.mapper.Mapper wrapped)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> realClass​(java.lang.String elementName)  
      java.lang.String serializedClass​(java.lang.Class type)  
      • Methods inherited from class com.thoughtworks.xstream.mapper.ClassAliasingMapper

        addClassAlias, addClassAttributeAlias, addTypeAlias, aliasIsAttribute, itemTypeAsAttribute
      • Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper

        aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassNameAliasingMapper

        public ClassNameAliasingMapper​(com.thoughtworks.xstream.mapper.Mapper wrapped)
        Constructor.
        Parameters:
        wrapped - wrapped mapper
    • Method Detail

      • realClass

        public java.lang.Class<?> realClass​(java.lang.String elementName)
        Specified by:
        realClass in interface com.thoughtworks.xstream.mapper.Mapper
        Overrides:
        realClass in class com.thoughtworks.xstream.mapper.ClassAliasingMapper
      • serializedClass

        public java.lang.String serializedClass​(java.lang.Class type)
        Specified by:
        serializedClass in interface com.thoughtworks.xstream.mapper.Mapper
        Overrides:
        serializedClass in class com.thoughtworks.xstream.mapper.ClassAliasingMapper