The provided map should contain a mapping between the name of the Java type or field to the proper element in the target format. If a name cannot be found in the map, it is assumed not to be mapped at all. Note that the values of the map should be unique also, otherwise the decoding will produce wrong results.
| Modifier and Type | Field and Description |
|---|---|
| private transient Map | |
| private final Map | |
| private final Map | |
| private transient Map |
| Access | Constructor and Description |
|---|---|
| public | StaticNameCoder(Map<K, V>
mapping of Java names to nodes java2Node, Map<K, V> mapping of Java names to attributes java2Attribute)Construct a StaticNameCoder. |
| Modifier and Type | Method and Description |
|---|---|
| public String | decodeAttribute(String
the name of the attribute attributeName)Implements com. |
| public String | decodeNode(String
the name of the node nodeName)Implements com. |
| public String | encodeAttribute(String
the name of the meta-data name)Implements com. |
| public String | encodeNode(String
the name of the object data name)Implements com. |
| private Map | |
| private Object |
| attribute2Java | back to summary |
|---|---|
| private transient Map<K, V> attribute2Java | |
| java2Attribute | back to summary |
|---|---|
| private final Map<K, V> java2Attribute | |
| java2Node | back to summary |
|---|---|
| private final Map<K, V> java2Node | |
| node2Java | back to summary |
|---|---|
| private transient Map<K, V> node2Java | |
| StaticNameCoder | back to summary |
|---|---|
| public StaticNameCoder(Map<K, V> java2Node, Map<K, V> java2Attribute) Construct a StaticNameCoder. | |
| decodeAttribute | back to summary |
|---|---|
| public String decodeAttribute(String attributeName) Implements com. Doc from com. Decode an attribute name to an object name. | |
| decodeNode | back to summary |
|---|---|
| public String decodeNode(String nodeName) Implements com. Doc from com. Decode a node name to an object name. | |
| encodeAttribute | back to summary |
|---|---|
| public String encodeAttribute(String name) Implements com. Doc from com. Encode a meta-data name for an attribute in the target format. | |
| encodeNode | back to summary |
|---|---|
| public String encodeNode(String name) Implements com. Doc from com. Encode an object name for a node in the target format. | |
| invertMap | back to summary |
|---|---|
| private Map | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |