org.edg.security.authorization.map
Class TableMap

java.lang.Object
  |
  +--org.edg.security.authorization.map.TableMap
All Implemented Interfaces:
java.util.Map

public class TableMap
extends java.lang.Object
implements java.util.Map

Class TableMap. Implements a LinkedHashMap of a key mapping to a List of values, generated from the following XML snippet:

 <...>  -- the supplied "config" element
   <param key="key1" value="value1" />
   <param key="key1" value="value2" />
   <param key="key2" value="value3" />
    ...
 </...>
 

(The LinkedHashMap keeps the same iteration order as the entries were added.) NOTE: The map created from the XML snippet is not modifiable. Any method attempting to modify the content of the map is unsupported (put(), remove(), clear()).

Version:
%I%, %G%
Author:
Gian Luca Volpato
See Also:
LinkedHashMap

Constructor Summary
TableMap(org.w3c.dom.Element config)
          Constructor TableMap
 
Method Summary
 void clear()
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 java.lang.Object remove(java.lang.Object key)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

TableMap

public TableMap(org.w3c.dom.Element config)
Constructor TableMap

Parameters:
config - The XML element to be used for the creation of the map
Method Detail

size

public int size()
Specified by:
size in interface java.util.Map
See Also:
Map.size()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map
See Also:
Map.isEmpty()

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map
See Also:
Map.containsKey(Object)

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map
See Also:
Map.containsValue(Object)

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
See Also:
Map.get(Object)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
See Also:
Map.put(Object, Object)

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map
See Also:
Map.remove(Object)

putAll

public void putAll(java.util.Map t)
Specified by:
putAll in interface java.util.Map
See Also:
Map.putAll(Map)

clear

public void clear()
Specified by:
clear in interface java.util.Map
See Also:
Map.clear()

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map
See Also:
Map.keySet()

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map
See Also:
Map.values()

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
See Also:
Map.entrySet()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object