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

public Class XStream11NameCoder

extends XmlFriendlyNameCoder
Class Inheritance

A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.
Author
Jörg Schaible
Since
1.4

Constructor Summary

AccessConstructor and Description
public

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.
Inherited from com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder:
clonecreateCacheMapencodeAttributeencodeNode

Constructor Detail

XStream11NameCoderback to summary
public XStream11NameCoder()

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