Esri Geoportal Server
1.0

com.esri.gpt.framework.collection
Class StringAttributeMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,T>
              extended by com.esri.gpt.framework.collection.CaseInsensitiveMap<StringAttribute>
                  extended by com.esri.gpt.framework.collection.StringAttributeMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,StringAttribute>

public class StringAttributeMap
extends CaseInsensitiveMap<StringAttribute>

Maintains an ordered map of StringAttribute objects with case insensitive map keys.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
StringAttributeMap()
          Default constructor.
StringAttributeMap(boolean allowEmptyKey)
          Construct with a flag indicating if an empty map key is allowed.
 
Method Summary
 void add(StringAttribute member)
          Adds a member to the collection.
 String getValue(String key)
          Gets the value associated with a key.
 StringAttribute set(String key, String value)
          Instantiates a new StringAttribute with the supplied key and value and puts it into the collection.
 
Methods inherited from class com.esri.gpt.framework.collection.CaseInsensitiveMap
containsKey, get, getAllowEmptyKey, put, toString
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

StringAttributeMap

public StringAttributeMap()
Default constructor.


StringAttributeMap

public StringAttributeMap(boolean allowEmptyKey)
Construct with a flag indicating if an empty map key is allowed.

Parameters:
allowEmptyKey - true if an empty key is allowed
Method Detail

add

public void add(StringAttribute member)
Adds a member to the collection.
The member will not be added if it is null.

Parameters:
member - the member to add

getValue

public String getValue(String key)
Gets the value associated with a key.

Parameters:
key - the subject key
Returns:
the associated value (null if not found)

set

public StringAttribute set(String key,
                           String value)
Instantiates a new StringAttribute with the supplied key and value and puts it into the collection.

Parameters:
key - the key
value - the value
Returns:
previous value associated with the key, or null if there was no existing mapping for the key

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.