Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class Schemas

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

public class Schemas
extends LinkedHashMap<String,Schema>

Defines a collection of metadata schemas.

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
Schemas()
          Default constructor.
Schemas(Schemas objectToDuplicate)
          Construct by duplicating an existing object.
 
Method Summary
 void add(Schema member)
          Adds a member to the collection.
 PropertyMeanings getPropertyMeanings()
          Gets the configured property meanings.
 Schema interrogate(Document dom)
          Interrogates a metadata document to locate a Schema capable of processing the document.
 Schema locate(String schemaKey)
          Locates a Schema based upon a supplied schema key.
protected  void setPropertyMeanings(PropertyMeanings meanings)
          Sets the configured property meanings.
 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

Schemas

public Schemas()
Default constructor.


Schemas

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

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

getPropertyMeanings

public PropertyMeanings getPropertyMeanings()
Gets the configured property meanings.

Returns:
the property meanings

setPropertyMeanings

protected void setPropertyMeanings(PropertyMeanings meanings)
Sets the configured property meanings.

Parameters:
meanings - the property meanings

add

public void add(Schema member)
Adds a member to the collection.
The member will not be added if it is null or if it has an empty key.

Parameters:
member - the member to add

locate

public Schema locate(String schemaKey)
              throws UnrecognizedSchemaException
Locates a Schema based upon a supplied schema key.

Parameters:
schemaKey - the key associated with the schema to locate
Returns:
the associated schema object (duplicated)
Throws:
UnrecognizedSchemaException - if the schema is unrecognized

interrogate

public Schema interrogate(Document dom)
                   throws UnrecognizedSchemaException
Interrogates a metadata document to locate a Schema capable of processing the document.

Parameters:
dom - the metadata document
Returns:
the associated schema object (duplicated)
Throws:
UnrecognizedSchemaException - if the schema is unrecognized

toString

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

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

Esri Geoportal Server
1.0

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