public class NoNameCoder extends java.lang.Object implements NameCoder
The usage of this implementation implies that the names used for the objects can also be used in the target format without any change. This applies also for XML if the object graph contains no object that is an instance of an inner class type or is in the default package.
Constructor and Description |
---|
NoNameCoder() |
Modifier and Type | Method and 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.
|
public java.lang.String decodeAttribute(java.lang.String attributeName)
decodeAttribute
in interface NameCoder
attributeName
- the name of the attributepublic java.lang.String decodeNode(java.lang.String nodeName)
decodeNode
in interface NameCoder
nodeName
- the name of the nodepublic java.lang.String encodeAttribute(java.lang.String name)
encodeAttribute
in interface NameCoder
name
- the name of the meta-datapublic java.lang.String encodeNode(java.lang.String name)
encodeNode
in interface NameCoder
name
- the name of the object dataCopyright © 2004–2024 XStream. All rights reserved.