Package com.thoughtworks.xstream.io.xml
Class XStream11XmlFriendlyReplacer
- java.lang.Object
-
- com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
-
- com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
-
- com.thoughtworks.xstream.io.xml.XStream11XmlFriendlyReplacer
-
- All Implemented Interfaces:
NameCoder,java.lang.Cloneable
public class XStream11XmlFriendlyReplacer extends XmlFriendlyReplacer
Deprecated.As of 1.4, useXStream11NameCoderinsteadAllows replacement of Strings in xml-friendly drivers to provide compatibility with XStream 1.1 format- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description XStream11XmlFriendlyReplacer()Deprecated.As of 1.4, useXStream11NameCoderinstead
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringdecodeAttribute(java.lang.String attributeName)Deprecated.Decode an attribute name to an object name.java.lang.StringdecodeNode(java.lang.String elementName)Deprecated.Decode a node name to an object name.java.lang.StringunescapeName(java.lang.String name)Deprecated.Noop implementation that does not unescape name.-
Methods inherited from class com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
escapeName
-
Methods inherited from class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
clone, createCacheMap, encodeAttribute, encodeNode
-
-
-
-
Constructor Detail
-
XStream11XmlFriendlyReplacer
public XStream11XmlFriendlyReplacer()
Deprecated.As of 1.4, useXStream11NameCoderinsteadDefault constructor.
-
-
Method Detail
-
decodeAttribute
public java.lang.String decodeAttribute(java.lang.String attributeName)
Deprecated.Decode an attribute name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.- Specified by:
decodeAttributein interfaceNameCoder- Overrides:
decodeAttributein classXmlFriendlyNameCoder- Parameters:
attributeName- the name of the attribute- Returns:
- the name of the meta-data
-
decodeNode
public java.lang.String decodeNode(java.lang.String elementName)
Deprecated.Decode a node name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.- Specified by:
decodeNodein interfaceNameCoder- Overrides:
decodeNodein classXmlFriendlyNameCoder- Parameters:
elementName- the name of the node- Returns:
- the name of the object
-
unescapeName
public java.lang.String unescapeName(java.lang.String name)
Deprecated.Noop implementation that does not unescape name. Used for XStream 1.1 compatibility.- Overrides:
unescapeNamein classXmlFriendlyReplacer- Parameters:
name- the name of attribute or node- Returns:
- The String with unescaped name
-
-