Class NameCoderWrapper
java.lang.Object
com.thoughtworks.xstream.io.naming.NameCoderWrapper
- All Implemented Interfaces:
NameCoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeAttribute(String attributeName) Decode an attribute name to an object name.decodeNode(String nodeName) Decode a node name to an object name.encodeAttribute(String name) Encode a meta-data name for an attribute in the target format.encodeNode(String name) Encode an object name for a node in the target format.
-
Field Details
-
wrapped
-
-
Constructor Details
-
NameCoderWrapper
Construct a new wrapper for a NameCoder.- Parameters:
inner- the wrapped NameCoder- Since:
- 1.4
-
-
Method Details
-
decodeAttribute
Decode an attribute name to an object name.- Specified by:
decodeAttributein interfaceNameCoder- Parameters:
attributeName- the name of the attribute- Returns:
- the name of the meta-data
-
decodeNode
Decode a node name to an object name.- Specified by:
decodeNodein interfaceNameCoder- Parameters:
nodeName- the name of the node- Returns:
- the name of the object
-
encodeAttribute
Encode a meta-data name for an attribute in the target format.- Specified by:
encodeAttributein interfaceNameCoder- Parameters:
name- the name of the meta-data- Returns:
- the attribute name in the target format
-
encodeNode
Encode an object name for a node in the target format.- Specified by:
encodeNodein interfaceNameCoder- Parameters:
name- the name of the object data- Returns:
- the node name in the target format
-