Class ClassAliasingMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.ClassAliasingMapper
- All Implemented Interfaces:
Mapper
Mapper that allows a fully qualified class name to be replaced with an alias.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassAlias(String name, Class type) voidaddClassAttributeAlias(String name, Class type) Deprecated.As of 1.3, method was a leftover of an old implementationvoidaddTypeAlias(String name, Class type) booleanaliasIsAttribute(String name) Deprecated.As of 1.4.9booleanitemTypeAsAttribute(Class clazz) Deprecated.As of 1.4.9private ObjectHow 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.Methods inherited from class 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
-
typeToName
-
classToName
-
nameToType
-
-
Constructor Details
-
ClassAliasingMapper
-
-
Method Details
-
addClassAlias
-
addClassAttributeAlias
-
addTypeAlias
-
serializedClass
Description copied from interface:MapperHow a class name should be represented in its serialized form.- Specified by:
serializedClassin interfaceMapper- Overrides:
serializedClassin classMapperWrapper
-
realClass
-
itemTypeAsAttribute
Deprecated.As of 1.4.9 -
aliasIsAttribute
Deprecated.As of 1.4.9 -
readResolve
-