Package com.thoughtworks.xstream.mapper
Class PackageAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.PackageAliasingMapper
- All Implemented Interfaces:
Mapper,Serializable
Mapper that allows a package name to be replaced with an alias.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackageAlias(String name, String pkg) private voidHow a serialized class representation should be mapped back to a real class.serializedClass(Class type) How a class name should be represented in its serialized form.private voidMethods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
-
Field Details
-
REVERSE
-
packageToName
-
nameToPackage
-
-
Constructor Details
-
PackageAliasingMapper
-
-
Method Details
-
addPackageAlias
-
serializedClass
Description copied from interface:MapperHow a class name should be represented in its serialized form.- Specified by:
serializedClassin interfaceMapper- Overrides:
serializedClassin classMapperWrapper
-
realClass
Description copied from interface:MapperHow a serialized class representation should be mapped back to a real class.- Specified by:
realClassin interfaceMapper- Overrides:
realClassin classMapperWrapper
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOExceptionClassNotFoundException
-