org.apache.shale.clay.config.beans
Class Attributes

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by org.apache.shale.clay.config.beans.Attributes
All Implemented Interfaces:
Serializable, Cloneable, Map, SortedMap

public class Attributes
extends TreeMap

Normalize the case of a String key to lower case making the collection case insensitive.

See Also:
Serialized Form

Constructor Summary
Attributes()
           
 
Method Summary
 boolean containsKey(Object key)
          Make the key case insensitive.
 Object get(Object key)
          Make the key case insensitive.
 Object put(Object key, Object value)
          Make the key case insensitive.
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsValue, entrySet, firstKey, headMap, keySet, lastKey, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

Attributes

public Attributes()
Method Detail

containsKey

public boolean containsKey(Object key)

Make the key case insensitive.

Specified by:
containsKey in interface Map
Overrides:
containsKey in class TreeMap
Parameters:
key - attribute key
Returns:
true if key is contained

get

public Object get(Object key)

Make the key case insensitive.

Specified by:
get in interface Map
Overrides:
get in class TreeMap
Parameters:
key - attribute name
Returns:
value

put

public Object put(Object key,
                  Object value)

Make the key case insensitive.

Specified by:
put in interface Map
Overrides:
put in class TreeMap
Parameters:
key - attribute name
value - attribute value
Returns:
original value


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.