com.thoughtworks.xstream.mapper
Class PackageAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.PackageAliasingMapper
- All Implemented Interfaces:
- Mapper, Serializable
public class PackageAliasingMapper
- extends MapperWrapper
- implements Serializable
Mapper that allows a package name to be replaced with an alias.
- Author:
- Jörg Schaible
- See Also:
- Serialized Form
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 |
nameToPackage
protected transient Map nameToPackage
PackageAliasingMapper
public PackageAliasingMapper(Mapper wrapped)
addPackageAlias
public void addPackageAlias(String name,
String pkg)
serializedClass
public String serializedClass(Class type)
- Description copied from interface:
Mapper
- How a class name should be represented in its serialized form.
- Specified by:
serializedClass
in interface Mapper
- Overrides:
serializedClass
in class MapperWrapper
realClass
public Class realClass(String elementName)
- Description copied from interface:
Mapper
- How a serialized class representation should be mapped back to a real class.
- Specified by:
realClass
in interface Mapper
- Overrides:
realClass
in class MapperWrapper
Copyright © 2004-2014 XStream. All Rights Reserved.