Class NameCoderWrapper
- java.lang.Object
-
- com.thoughtworks.xstream.io.naming.NameCoderWrapper
-
-
Constructor Summary
Constructors Constructor Description NameCoderWrapper(NameCoder inner)
Construct a new wrapper for a NameCoder.
-
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 nodeName)
Decode a node name to an object name.java.lang.String
encodeAttribute(java.lang.String name)
Encode a meta-data name for an attribute in the target format.java.lang.String
encodeNode(java.lang.String name)
Encode an object name for a node in the target format.
-
-
-
Field Detail
-
wrapped
private final NameCoder wrapped
-
-
Constructor Detail
-
NameCoderWrapper
public NameCoderWrapper(NameCoder inner)
Construct a new wrapper for a NameCoder.- Parameters:
inner
- the wrapped NameCoder- Since:
- 1.4
-
-
Method Detail
-
decodeAttribute
public java.lang.String decodeAttribute(java.lang.String attributeName)
Decode an attribute name to an object name.- Specified by:
decodeAttribute
in interfaceNameCoder
- Parameters:
attributeName
- the name of the attribute- Returns:
- the name of the meta-data
-
decodeNode
public java.lang.String decodeNode(java.lang.String nodeName)
Decode a node name to an object name.- Specified by:
decodeNode
in interfaceNameCoder
- Parameters:
nodeName
- the name of the node- Returns:
- the name of the object
-
encodeAttribute
public java.lang.String encodeAttribute(java.lang.String name)
Encode a meta-data name for an attribute in the target format.- Specified by:
encodeAttribute
in interfaceNameCoder
- Parameters:
name
- the name of the meta-data- Returns:
- the attribute name in the target format
-
encodeNode
public java.lang.String encodeNode(java.lang.String name)
Encode an object name for a node in the target format.- Specified by:
encodeNode
in interfaceNameCoder
- Parameters:
name
- the name of the object data- Returns:
- the node name in the target format
-
-