com.thoughtworks.xstream.mapper
Class AbstractXmlFriendlyMapper

java.lang.Object
  extended by com.thoughtworks.xstream.mapper.MapperWrapper
      extended by com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
All Implemented Interfaces:
Mapper
Direct Known Subclasses:
XmlFriendlyMapper, XStream11XmlFriendlyMapper

Deprecated. As of 1.4 use XmlFriendlyReader

public class AbstractXmlFriendlyMapper
extends MapperWrapper

Mapper that ensures that all names in the serialization stream are XML friendly. The replacement chars and strings are:

Note, this class is no longer in regular use for current XStream versions. It exists to provide backward compatibility to existing XML data written with older XStream versions.

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
protected AbstractXmlFriendlyMapper(Mapper wrapped)
          Deprecated.  
 
Method Summary
protected  String escapeClassName(String className)
          Deprecated.  
protected  String escapeFieldName(String fieldName)
          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, isImmutableValueType, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlFriendlyMapper

protected AbstractXmlFriendlyMapper(Mapper wrapped)
Deprecated. 
Method Detail

escapeClassName

protected String escapeClassName(String className)
Deprecated. 

unescapeClassName

protected String unescapeClassName(String className)
Deprecated. 

escapeFieldName

protected String escapeFieldName(String fieldName)
Deprecated. 

unescapeFieldName

protected String unescapeFieldName(String xmlName)
Deprecated. 


Copyright © 2004-2014 XStream. All Rights Reserved.