Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class Codes

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,Code>
              extended by com.esri.gpt.catalog.schema.Codes
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Code>

public class Codes
extends LinkedHashMap<String,Code>

Defines a code collection.

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
Codes()
          Default constructor.
Codes(Codes objectToDuplicate)
          Construct by duplicating an existing object.
 
Method Summary
 void add(Code member)
          Adds a member to the collection.
 String lookupDisplayValue(MessageBroker messageBroker, String key)
          Looks up the display value for a code.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, 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
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

Codes

public Codes()
Default constructor.


Codes

public Codes(Codes objectToDuplicate)
Construct by duplicating an existing object.

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

add

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

Parameters:
member - the member to add

lookupDisplayValue

public String lookupDisplayValue(MessageBroker messageBroker,
                                 String key)
Looks up the display value for a code.

Parameters:
messageBroker - the message broker
key - the code key
Returns:
the display value for the code

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class AbstractMap<String,Code>
Returns:
the string

Esri Geoportal Server
1.0

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