com.thoughtworks.xstream.io.xml
Class XStream11XmlFriendlyReplacer

java.lang.Object
  extended by com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
      extended by com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer
          extended by com.thoughtworks.xstream.io.xml.XStream11XmlFriendlyReplacer
All Implemented Interfaces:
NameCoder, Cloneable

Deprecated. As of 1.4, use XStream11NameCoder instead

public class XStream11XmlFriendlyReplacer
extends XmlFriendlyReplacer

Allows replacement of Strings in xml-friendly drivers to provide compatibility with XStream 1.1 format

Since:
1.2
Author:
Mauro Talevi

Constructor Summary
XStream11XmlFriendlyReplacer()
          Deprecated. As of 1.4, use XStream11NameCoder instead
 
Method Summary
 String decodeAttribute(String attributeName)
          Deprecated. Decode an attribute name to an object name.
 String decodeNode(String elementName)
          Deprecated. Decode a node name to an object name.
 String unescapeName(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, encodeAttribute, encodeNode
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStream11XmlFriendlyReplacer

public XStream11XmlFriendlyReplacer()
Deprecated. As of 1.4, use XStream11NameCoder instead

Default constructor.

Method Detail

decodeAttribute

public String decodeAttribute(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:
decodeAttribute in interface NameCoder
Overrides:
decodeAttribute in class XmlFriendlyNameCoder
Parameters:
attributeName - the name of the attribute
Returns:
the name of the meta-data

decodeNode

public String decodeNode(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:
decodeNode in interface NameCoder
Overrides:
decodeNode in class XmlFriendlyNameCoder
Parameters:
elementName - the name of the node
Returns:
the name of the object

unescapeName

public String unescapeName(String name)
Deprecated. 
Noop implementation that does not unescape name. Used for XStream 1.1 compatibility.

Overrides:
unescapeName in class XmlFriendlyReplacer
Parameters:
name - the name of attribute or node
Returns:
The String with unescaped name


Copyright © 2004-2014 XStream. All Rights Reserved.