public class

AbstractXmlFriendlyMapper

extends MapperWrapper
java.lang.Object
   ↳ com.thoughtworks.xstream.mapper.MapperWrapper
     ↳ com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
Known Direct Subclasses

Class Overview

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.

Summary

Protected Constructors
AbstractXmlFriendlyMapper(Mapper wrapped)
Protected Methods
String escapeClassName(String className)
String escapeFieldName(String fieldName)
String unescapeClassName(String className)
String unescapeFieldName(String xmlName)
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.mapper.MapperWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.mapper.Mapper

Protected Constructors

protected AbstractXmlFriendlyMapper (Mapper wrapped)

Protected Methods

protected String escapeClassName (String className)

protected String escapeFieldName (String fieldName)

protected String unescapeClassName (String className)

protected String unescapeFieldName (String xmlName)