Package com.thoughtworks.xstream.mapper
Class XStream11XmlFriendlyMapper
- java.lang.Object
-
- com.thoughtworks.xstream.mapper.MapperWrapper
-
- com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
-
- com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper
-
- All Implemented Interfaces:
Mapper
public class XStream11XmlFriendlyMapper extends AbstractXmlFriendlyMapper
Deprecated.As of 1.4 useXmlFriendlyReader
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
-
Constructor Summary
Constructors Constructor Description XStream11XmlFriendlyMapper(Mapper wrapped)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
mapNameFromXML(java.lang.String xmlName)
Deprecated.java.lang.Class
realClass(java.lang.String elementName)
Deprecated.How a serialized class representation should be mapped back to a real class.java.lang.String
realMember(java.lang.Class type, java.lang.String serialized)
Deprecated.How a serialized member representation should be mapped back to a real member.-
Methods inherited from class com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
escapeClassName, escapeFieldName, unescapeClassName, unescapeFieldName
-
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, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, serializedClass, serializedMember, shouldSerializeMember
-
-
-
-
Constructor Detail
-
XStream11XmlFriendlyMapper
public XStream11XmlFriendlyMapper(Mapper wrapped)
Deprecated.
-
-
Method Detail
-
realClass
public java.lang.Class realClass(java.lang.String elementName)
Deprecated.Description copied from interface:Mapper
How a serialized class representation should be mapped back to a real class.- Specified by:
realClass
in interfaceMapper
- Overrides:
realClass
in classMapperWrapper
-
realMember
public java.lang.String realMember(java.lang.Class type, java.lang.String serialized)
Deprecated.Description copied from interface:Mapper
How a serialized member representation should be mapped back to a real member.- Specified by:
realMember
in interfaceMapper
- Overrides:
realMember
in classMapperWrapper
-
mapNameFromXML
public java.lang.String mapNameFromXML(java.lang.String xmlName)
Deprecated.
-
-