Top Description Fields Constructors Methods
com.thoughtworks.xstream.io.naming

public Class NameCoderWrapper

extends Object
implements NameCoder
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.io.naming.NameCoder

A wrapper for another NameCoder.
Author
Jörg Schaible
Since
1.4

Field Summary

Modifier and TypeField and Description
private final NameCoder

Constructor Summary

AccessConstructor and Description
public
NameCoderWrapper(NameCoder
the wrapped NameCoder
inner
)

Construct a new wrapper for a NameCoder.

Method Summary

Modifier and TypeMethod and Description
public String
decodeAttribute(String
the name of the attribute
attributeName
)

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
nodeName
)

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

Decode a node name to an object name.
public String
encodeAttribute(String
the name of the meta-data
name
)

Implements com.thoughtworks.xstream.io.naming.NameCoder.encodeAttribute.

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

Implements com.thoughtworks.xstream.io.naming.NameCoder.encodeNode.

Encode an object name for a node in the target format.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

wrappedback to summary
private final NameCoder wrapped

Constructor Detail

NameCoderWrapperback to summary
public NameCoderWrapper(NameCoder inner)

Construct a new wrapper for a NameCoder.

Parameters
inner:NameCoder

the wrapped NameCoder

Since
1.4

Method Detail

decodeAttributeback to summary
public String decodeAttribute(String attributeName)

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeAttribute.

Decode an attribute name to an object name.

Parameters
attributeName:String

the name of the attribute

Returns:String

the name of the meta-data

decodeNodeback to summary
public String decodeNode(String nodeName)

Implements com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

Doc from com.thoughtworks.xstream.io.naming.NameCoder.decodeNode.

Decode a node name to an object name.

Parameters
nodeName:String

the name of the node

Returns:String

the name of the object

encodeAttributeback to summary
public String encodeAttribute(String name)

Implements com.thoughtworks.xstream.io.naming.NameCoder.encodeAttribute.

Doc from com.thoughtworks.xstream.io.naming.NameCoder.encodeAttribute.

Encode a meta-data name for an attribute in the target format.

Parameters
name:String

the name of the meta-data

Returns:String

the attribute name in the target format

encodeNodeback to summary
public String encodeNode(String name)

Implements com.thoughtworks.xstream.io.naming.NameCoder.encodeNode.

Doc from com.thoughtworks.xstream.io.naming.NameCoder.encodeNode.

Encode an object name for a node in the target format.

Parameters
name:String

the name of the object data

Returns:String

the node name in the target format