|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jcon.data.TranslatingMap
public class TranslatingMap
A dictionary that serves as a translator between a source dictionary and a client.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
TranslatingMap(java.util.Map source)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Iterator |
elements()
Returns an enumeration of the elements. |
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
Gets the object associated with the specified key in the Map. |
protected java.util.Map |
getSource()
|
boolean |
isEmpty()
Returns true if the Map contains no elements. |
java.util.Iterator |
keys()
Returns an enumeration of the Map's keys. |
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts the specified element into the Map, using the specified key. |
void |
putAll(java.util.Map map)
|
java.lang.Object |
remove(java.lang.Object key)
Removes the element corresponding to the key. |
int |
size()
Returns the number of elements contained within the Map. |
protected java.lang.Object |
translateElement(java.lang.Object element)
|
protected java.lang.Object |
translateKey(java.lang.Object key)
|
protected java.lang.Object |
translateMapping(java.lang.Object key,
java.lang.Object element)
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TranslatingMap(java.util.Map source)
| Method Detail |
|---|
public int size()
size in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Iterator keys()
public java.util.Iterator elements()
public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapkey - the key in the hash tableMap.put(K, V)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapkey - the specified hashtable keyvalue - the specified element
java.lang.NullPointerException - If the value of the specified element is null.Implementation needs work.public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapkey - the key that needs to be removed
protected java.lang.Object translateKey(java.lang.Object key)
protected java.lang.Object translateElement(java.lang.Object element)
protected java.lang.Object translateMapping(java.lang.Object key,
java.lang.Object element)
protected java.util.Map getSource()
public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic void putAll(java.util.Map map)
putAll in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Map
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||