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(XMLFragment 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.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, toString, values
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(XMLFragment parent, java.lang.String rootOfPair, java.lang.String nodeFrom, java.lang.String nodeTo, java.net.URI base)
parent
- ElementrootOfPair
- StringnodeFrom
- StringnodeTo
- Stringbase
- URICopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa