|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<T,T>
com.ihr.xbrl.comparator.ComparatorMapping<T>
T - The element type classpublic class ComparatorMapping<T>
Template class to store a pair of elements. The pair contains two objects. The key object and the correspondent object.
| Constructor Summary | |
|---|---|
ComparatorMapping()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComparatorMapping()
| Method Detail |
|---|
public void addPair(T key,
T correspondent)
key - correspondent -
public void delPair(T key,
T correspondent)
key - correspondent - public T getPairOf(T key)
key -
public T getReversePairOf(T correspondent)
correspondent -
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||