T - The element type classpublic class ComparatorMapping<T>
extends java.util.Hashtable<T,T>
| Constructor and Description |
|---|
ComparatorMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPair(T key,
T correspondent)
Adds a pair of elements to the comparatorMapping.
|
void |
delPair(T key,
T correspondent)
Removes a pair of elements.
|
void |
generateNode(org.jdom.Element parent,
java.lang.String rootOfPair,
java.lang.String nodeFrom,
java.lang.String nodeTo,
java.net.URI base)
Generates an XML representation of the mapping object.
|
T |
getPairOf(T key)
Obtains the correspondent element to an initial element.
|
T |
getReversePairOf(T correspondent)
Obtains the key element for a correspondent element.
|
public void addPair(T key, T correspondent)
key - the keycorrespondent - the correspondentpublic void delPair(T key, T correspondent)
key - the keycorrespondent - the correspondentpublic T getPairOf(T key)
key - the keypublic T getReversePairOf(T correspondent)
correspondent - the correspondentpublic void generateNode(org.jdom.Element parent,
java.lang.String rootOfPair,
java.lang.String nodeFrom,
java.lang.String nodeTo,
java.net.URI base)
parent - ElementrootOfPair - StringnodeFrom - StringnodeTo - Stringbase - URI