Top Description Fields Constructors Methods
com.thoughtworks.xstream.mapper

public Class AbstractXmlFriendlyMapper

extends MapperWrapper
Class Inheritance
Known Direct Subclasses
com.thoughtworks.xstream.mapper.XmlFriendlyMapper, com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper

Deprecated

As of 1.4 use com.thoughtworks.xstream.io.xml.XmlFriendlyReader

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.
Authors
Joe Walnes, Mauro Talevi

Field Summary

Modifier and TypeField and Description
private char
private String
private String
private String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected String
protected String
private boolean
stringFoundAt(String name, int i, String replacement)

protected String
protected String
Inherited from com.thoughtworks.xstream.mapper.MapperWrapper:
aliasForAttributealiasForAttributealiasForSystemAttributeattributeForAliasattributeForAliasdefaultImplementationOfgetConverterFromAttributegetConverterFromAttributegetConverterFromAttributegetConverterFromItemTypegetConverterFromItemTypegetConverterFromItemTypegetFieldNameForItemTypeAndNamegetImplicitCollectionDefForFieldNamegetItemTypeForItemFieldNamegetLocalConverterisIgnoredElementisImmutableValueTypeisReferenceablelookupMapperOfTyperealClassrealMemberserializedClassserializedMembershouldSerializeMember

Field Detail

dollarReplacementInClassback to summary
private char dollarReplacementInClass
dollarReplacementInFieldback to summary
private String dollarReplacementInField
noPackagePrefixback to summary
private String noPackagePrefix
underscoreReplacementInFieldback to summary
private String underscoreReplacementInField

Constructor Detail

AbstractXmlFriendlyMapperback to summary
protected AbstractXmlFriendlyMapper(Mapper wrapped)

Method Detail

escapeClassNameback to summary
protected String escapeClassName(String className)
escapeFieldNameback to summary
protected String escapeFieldName(String fieldName)
stringFoundAtback to summary
private boolean stringFoundAt(String name, int i, String replacement)
unescapeClassNameback to summary
protected String unescapeClassName(String className)
unescapeFieldNameback to summary
protected String unescapeFieldName(String xmlName)