Package com.thoughtworks.xstream.mapper
Class AbstractXmlFriendlyMapper
- java.lang.Object
-
- com.thoughtworks.xstream.mapper.MapperWrapper
-
- com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
-
- All Implemented Interfaces:
Mapper
- Direct Known Subclasses:
XmlFriendlyMapper
,XStream11XmlFriendlyMapper
public class AbstractXmlFriendlyMapper extends MapperWrapper
Deprecated.As of 1.4 useXmlFriendlyReader
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.
- Author:
- Joe Walnes, Mauro Talevi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractXmlFriendlyMapper(Mapper wrapped)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.String
escapeClassName(java.lang.String className)
Deprecated.protected java.lang.String
escapeFieldName(java.lang.String fieldName)
Deprecated.protected java.lang.String
unescapeClassName(java.lang.String className)
Deprecated.protected java.lang.String
unescapeFieldName(java.lang.String xmlName)
Deprecated.-
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, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
-
-
-
-
Constructor Detail
-
AbstractXmlFriendlyMapper
protected AbstractXmlFriendlyMapper(Mapper wrapped)
Deprecated.
-
-
Method Detail
-
escapeClassName
protected java.lang.String escapeClassName(java.lang.String className)
Deprecated.
-
unescapeClassName
protected java.lang.String unescapeClassName(java.lang.String className)
Deprecated.
-
escapeFieldName
protected java.lang.String escapeFieldName(java.lang.String fieldName)
Deprecated.
-
unescapeFieldName
protected java.lang.String unescapeFieldName(java.lang.String xmlName)
Deprecated.
-
-