public class

XmlFriendlyMapper

extends AbstractXmlFriendlyMapper
java.lang.Object
   ↳ com.thoughtworks.xstream.mapper.MapperWrapper
     ↳ com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
       ↳ com.thoughtworks.xstream.mapper.XmlFriendlyMapper

This class is deprecated.
since 1.3, use XmlFriendlyReader

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

Public Constructors
XmlFriendlyMapper(Mapper wrapped)
This constructor is deprecated. since 1.3, use XmlFriendlyReader
XmlFriendlyMapper(ClassMapper wrapped)
This constructor is deprecated. since 1.2, use XmlFriendlyMapper(Mapper)
Public Methods
String mapNameFromXML(String xmlName)
String mapNameToXML(String javaName)
Class realClass(String elementName)
How a serialized class representation should be mapped back to a real class.
String realMember(Class type, String serialized)
How a serialized member representation should be mapped back to a real member.
String serializedClass(Class type)
How a class name should be represented in its serialized form.
String serializedMember(Class type, String memberName)
How a class member should be represented in its serialized form.
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
From class com.thoughtworks.xstream.mapper.MapperWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.mapper.Mapper

Public Constructors

public XmlFriendlyMapper (Mapper wrapped)

This constructor is deprecated.
since 1.3, use XmlFriendlyReader

public XmlFriendlyMapper (ClassMapper wrapped)

This constructor is deprecated.
since 1.2, use XmlFriendlyMapper(Mapper)

Public Methods

public String mapNameFromXML (String xmlName)

public String mapNameToXML (String javaName)

public Class realClass (String elementName)

How a serialized class representation should be mapped back to a real class.

public String realMember (Class type, String serialized)

How a serialized member representation should be mapped back to a real member.

public String serializedClass (Class type)

How a class name should be represented in its serialized form.

public String serializedMember (Class type, String memberName)

How a class member should be represented in its serialized form.