public class

XStream11XmlFriendlyMapper

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

Class Overview

Mapper that ensures that all names in the serialization stream are read in an XML friendly way.

  • _ (underscore) chars appearing in class names are replaced with $
    (dollar)
  • _DOLLAR_ string appearing in field names are replaced with $
    (dollar)
  • __ string appearing in field names are replaced with _
    (underscore)
  • default is the prefix for class names with no package.

Summary

Public Constructors
XStream11XmlFriendlyMapper(Mapper wrapped)
Public Methods
String mapNameFromXML(String xmlName)
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.
[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 XStream11XmlFriendlyMapper (Mapper wrapped)

Public Methods

public String mapNameFromXML (String xmlName)

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.