Top Description Constructors Methods
com.thoughtworks.xstream.io.xml

public Class XStream11XmlFriendlyReplacer

extends XmlFriendlyReplacer
Class Inheritance

Deprecated

As of 1.4, use XStream11NameCoder instead

Allows replacement of Strings in xml-friendly drivers to provide compatibility with XStream 1.1 format
Author
Mauro Talevi
Since
1.2

Constructor Summary

AccessConstructor and Description
public
XStream11XmlFriendlyReplacer()

Deprecated As of 1.4, use XStream11NameCoder instead
Default constructor.

Method Summary

Modifier and TypeMethod and Description
public String
decodeAttribute(String
the name of the attribute
attributeName
)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeAttribute.

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

Decode an attribute name to an object name.
public String
decodeNode(String
the name of the node
elementName
)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeNode.

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

Decode a node name to an object name.
public String

Returns:

The String with unescaped name
unescapeName
(String
the name of attribute or node
name
)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.unescapeName.

Noop implementation that does not unescape name.
Inherited from com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer:
escapeName

Constructor Detail

XStream11XmlFriendlyReplacerback to summary
public XStream11XmlFriendlyReplacer()

Deprecated

As of 1.4, use XStream11NameCoder instead

Default constructor.

Method Detail

decodeAttributeback to summary
public String decodeAttribute(String attributeName)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeAttribute.

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

Doc from com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeAttribute.

Decode an attribute name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.

Parameters
attributeName:String

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

the name of the attribute

Returns:String

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

the name of the meta-data

decodeNodeback to summary
public String decodeNode(String elementName)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeNode.

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

Doc from com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder.decodeNode.

Decode a node name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.

Parameters
elementName:String

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

the name of the node

Returns:String

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

the name of the object

unescapeNameback to summary
public String unescapeName(String name)

Overrides com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.unescapeName.

Noop implementation that does not unescape name. Used for XStream 1.1 compatibility.

Parameters
name:String

the name of attribute or node

Returns:String

The String with unescaped name