Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class Namespaces

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

public class Namespaces
extends LinkedHashMap<String,Namespace>

Defines a collection of namespaces associated with a schema.

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
Namespaces()
          Default constructor.
Namespaces(Namespaces objectToDuplicate)
          Construct by duplicating an existing object.
 
Method Summary
 void add(Namespace member)
          Adds a member to the collection.
 void add(String prefix, String uri)
          Adds a member to the collection.
 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

Namespaces

public Namespaces()
Default constructor.


Namespaces

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

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

add

public void add(Namespace member)
Adds a member to the collection.
The member will not be added if it is null.
The collection is keyed on the namespace prefix

Parameters:
member - the member to add

add

public void add(String prefix,
                String uri)
Adds a member to the collection.
If either argument is empty, the namespace will not be added.

Parameters:
prefix - the namespace prefix
uri - the namespace URI

toString

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

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

Esri Geoportal Server
1.0

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