Class XmlFriendlyMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.AbstractXmlFriendlyMapper
com.thoughtworks.xstream.mapper.XmlFriendlyMapper
- All Implemented Interfaces:
Mapper
Deprecated.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Constructor Summary
ConstructorsConstructorDescriptionXmlFriendlyMapper(Mapper wrapped) Deprecated.As of 1.3 useXmlFriendlyReader -
Method Summary
Modifier and TypeMethodDescriptionmapNameFromXML(String xmlName) Deprecated.mapNameToXML(String javaName) Deprecated.Deprecated.How a serialized class representation should be mapped back to a real class.realMember(Class type, String serialized) Deprecated.How a serialized member representation should be mapped back to a real member.serializedClass(Class type) Deprecated.How a class name should be represented in its serialized form.serializedMember(Class type, String memberName) Deprecated.How a class member should be represented in its serialized form.Methods inherited from class AbstractXmlFriendlyMapper
escapeClassName, escapeFieldName, unescapeClassName, unescapeFieldNameMethods inherited from class MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, shouldSerializeMember
-
Constructor Details
-
XmlFriendlyMapper
Deprecated.As of 1.3 useXmlFriendlyReader
-
-
Method Details
-
serializedClass
Deprecated.Description copied from interface:MapperHow a class name should be represented in its serialized form.- Specified by:
serializedClassin interfaceMapper- Overrides:
serializedClassin classMapperWrapper
-
realClass
-
serializedMember
Deprecated.Description copied from interface:MapperHow a class member should be represented in its serialized form.- Specified by:
serializedMemberin interfaceMapper- Overrides:
serializedMemberin classMapperWrapper
-
realMember
Deprecated.Description copied from interface:MapperHow a serialized member representation should be mapped back to a real member.- Specified by:
realMemberin interfaceMapper- Overrides:
realMemberin classMapperWrapper
-
mapNameToXML
-
mapNameFromXML
-
XmlFriendlyReader