com.thoughtworks.xstream.io.naming
Class NameCoderWrapper

java.lang.Object
  extended by com.thoughtworks.xstream.io.naming.NameCoderWrapper
All Implemented Interfaces:
NameCoder

public class NameCoderWrapper
extends Object
implements NameCoder

A wrapper for another NameCoder.

Since:
1.4
Author:
Jörg Schaible

Constructor Summary
NameCoderWrapper(NameCoder inner)
          Construct a new wrapper for a NameCoder.
 
Method Summary
 String decodeAttribute(String attributeName)
          Decode an attribute name to an object name.
 String decodeNode(String nodeName)
          Decode a node name to an object name.
 String encodeAttribute(String name)
          Encode a meta-data name for an attribute in the target format.
 String encodeNode(String name)
          Encode an object name for a node in the target format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 String decodeAttribute(String attributeName)
Decode an attribute name to an object name.

Specified by:
decodeAttribute in interface NameCoder
Parameters:
attributeName - the name of the attribute
Returns:
the name of the meta-data

decodeNode

public String decodeNode(String nodeName)
Decode a node name to an object name.

Specified by:
decodeNode in interface NameCoder
Parameters:
nodeName - the name of the node
Returns:
the name of the object

encodeAttribute

public String encodeAttribute(String name)
Encode a meta-data name for an attribute in the target format.

Specified by:
encodeAttribute in interface NameCoder
Parameters:
name - the name of the meta-data
Returns:
the attribute name in the target format

encodeNode

public String encodeNode(String name)
Encode an object name for a node in the target format.

Specified by:
encodeNode in interface NameCoder
Parameters:
name - the name of the object data
Returns:
the node name in the target format


Copyright © 2004-2014 XStream. All Rights Reserved.