Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class Namespace

java.lang.Object
  extended by com.esri.gpt.catalog.schema.Component
      extended by com.esri.gpt.catalog.schema.Namespace

public class Namespace
extends Component

Namespace component associated with a metadata schema.

The component is configured from a node with a schema configuration XML document.

Example:
<namespace prefix="gmd" uri="http://www.isotc211.org/2005/gmd"/>


Constructor Summary
Namespace()
          Default constructor.
Namespace(Namespace objectToDuplicate)
          Construct by duplicating an existing object.
 
Method Summary
 void configure(CfgContext context, Node node, NamedNodeMap attributes)
          Configures the object based upon a node loaded from a schema configuration XML.
 Namespace duplicate()
          Produces a deep clone of the object.
 void echo(StringBuffer sb)
          Appends property information for the component to a StringBuffer.
 String getPrefix()
          Gets the prefix.
 String getUri()
          Gets the uri.
 void setPrefix(String prefix)
          Sets the prefix.
 void setUri(String uri)
          Sets the uri.
 
Methods inherited from class com.esri.gpt.catalog.schema.Component
getKey, setKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace()
Default constructor.


Namespace

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

Parameters:
objectToDuplicate - the object to duplicate
Method Detail

getPrefix

public String getPrefix()
Gets the prefix.

Returns:
the prefix

setPrefix

public void setPrefix(String prefix)
Sets the prefix.

Parameters:
prefix - the prefix

getUri

public String getUri()
Gets the uri.

Returns:
the uri

setUri

public void setUri(String uri)
Sets the uri.

Parameters:
uri - the uri

configure

public void configure(CfgContext context,
                      Node node,
                      NamedNodeMap attributes)
Configures the object based upon a node loaded from a schema configuration XML.
The super.configure method should be invoked prior to any sub-class configuration.

The following attributes are configured:
prefix uri

Overrides:
configure in class Component
Parameters:
context - the configuration context
node - the configuration node
attributes - the attributes of the configuration node

duplicate

public Namespace duplicate()
Produces a deep clone of the object.
The duplication constructor is invoked.
return new Namespace(this);

Specified by:
duplicate in class Component

echo

public void echo(StringBuffer sb)
Appends property information for the component to a StringBuffer.
The method is intended to support "FINEST" logging.
super.echo should be invoked prior appending any local information.

Overrides:
echo in class Component
Parameters:
sb - the StringBuffer to use when appending information

Esri Geoportal Server
1.0

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