Package com.thoughtworks.xstream.mapper
Class XmlFriendlyMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
com.thoughtworks.xstream.mapper.XmlFriendlyMapper
- All Implemented Interfaces:
Mapper
Deprecated.
Mapper that ensures that all names in the serialization stream are XML friendly.
The replacement chars and strings are:
- $ (dollar) chars appearing in class names are replaced with _ (underscore) chars.
- $ (dollar) chars appearing in field names are replaced with _DOLLAR_ string.
- _ (underscore) chars appearing in field names are replaced with __ (double underscore) string.
- default as the prefix for class names with no package.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
Constructor Summary
ConstructorsConstructorDescriptionXmlFriendlyMapper
(Mapper wrapped) Deprecated.As of 1.3 useXmlFriendlyReader
-
Method Summary
Modifier and TypeMethodDescriptionmapNameFromXML
(String xmlName) Deprecated.mapNameToXML
(String javaName) Deprecated.Deprecated.How a serialized class representation should be mapped back to a real class.realMember
(Class type, String serialized) Deprecated.How a serialized member representation should be mapped back to a real member.serializedClass
(Class type) Deprecated.How a class name should be represented in its serialized form.serializedMember
(Class type, String memberName) Deprecated.How a class member should be represented in its serialized form.Methods inherited from class com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
escapeClassName, escapeFieldName, unescapeClassName, unescapeFieldName
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, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, shouldSerializeMember
-
Constructor Details
-
XmlFriendlyMapper
Deprecated.As of 1.3 useXmlFriendlyReader
-
-
Method Details
-
serializedClass
Deprecated.Description copied from interface:Mapper
How a class name should be represented in its serialized form.- Specified by:
serializedClass
in interfaceMapper
- Overrides:
serializedClass
in classMapperWrapper
-
realClass
Deprecated.Description copied from interface:Mapper
How a serialized class representation should be mapped back to a real class.- Specified by:
realClass
in interfaceMapper
- Overrides:
realClass
in classMapperWrapper
-
serializedMember
Deprecated.Description copied from interface:Mapper
How a class member should be represented in its serialized form.- Specified by:
serializedMember
in interfaceMapper
- Overrides:
serializedMember
in classMapperWrapper
-
realMember
Deprecated.Description copied from interface:Mapper
How a serialized member representation should be mapped back to a real member.- Specified by:
realMember
in interfaceMapper
- Overrides:
realMember
in classMapperWrapper
-
mapNameToXML
Deprecated. -
mapNameFromXML
Deprecated.
-
XmlFriendlyReader