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
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
escapeClassName
(String className) Deprecated.protected String
escapeFieldName
(String fieldName) Deprecated.private boolean
stringFoundAt
(String name, int i, String replacement) Deprecated.protected String
unescapeClassName
(String className) Deprecated.protected String
unescapeFieldName
(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
-
Field Details
-
dollarReplacementInClass
private char dollarReplacementInClassDeprecated. -
dollarReplacementInField
Deprecated. -
underscoreReplacementInField
Deprecated. -
noPackagePrefix
Deprecated.
-
-
Constructor Details
-
AbstractXmlFriendlyMapper
Deprecated.
-
-
Method Details
-
escapeClassName
Deprecated. -
unescapeClassName
Deprecated. -
escapeFieldName
Deprecated. -
unescapeFieldName
Deprecated. -
stringFoundAt
Deprecated.
-
XmlFriendlyReader