Package com.thoughtworks.xstream.io.xml
Class XStream11NameCoder
- java.lang.Object
-
- com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
-
- com.thoughtworks.xstream.io.xml.XStream11NameCoder
-
- All Implemented Interfaces:
NameCoder
,java.lang.Cloneable
public class XStream11NameCoder extends XmlFriendlyNameCoder
A XmlFriendlyNameCoder to support backward compatibility with XStream 1.1.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description XStream11NameCoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decodeAttribute(java.lang.String attributeName)
Decode an attribute name to an object name.java.lang.String
decodeNode(java.lang.String elementName)
Decode a node name to an object name.-
Methods inherited from class com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder
clone, createCacheMap, encodeAttribute, encodeNode
-
-
-
-
Method Detail
-
decodeAttribute
public java.lang.String decodeAttribute(java.lang.String attributeName)
Decode an attribute name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.- Specified by:
decodeAttribute
in interfaceNameCoder
- Overrides:
decodeAttribute
in 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)
Decode a node name to an object name. Noop implementation that does not decode. Used for XStream 1.1 compatibility.- Specified by:
decodeNode
in interfaceNameCoder
- Overrides:
decodeNode
in classXmlFriendlyNameCoder
- Parameters:
elementName
- the name of the node- Returns:
- the name of the object
-
-