Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class NamespaceContextImpl

java.lang.Object
  extended by com.esri.gpt.catalog.schema.NamespaceContextImpl
All Implemented Interfaces:
NamespaceContext

public class NamespaceContextImpl
extends Object
implements NamespaceContext

Provides an implementation of NamespaceContext for a Namespaces collection.


Constructor Summary
NamespaceContextImpl(Namespaces namespaces)
          Constructs a namespace context for a namespace collection.
 
Method Summary
 String getNamespaceURI(String prefix)
          Gets the namespace URI associated with a prefix.
 String getPrefix(String uri)
          Gets the namespace prefix associated with a URI.
 Iterator getPrefixes(String namespaceURI)
          Gets the namespace prefix iterator associated with a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceContextImpl

public NamespaceContextImpl(Namespaces namespaces)
Constructs a namespace context for a namespace collection.

Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Gets the namespace URI associated with a prefix.

Specified by:
getNamespaceURI in interface NamespaceContext
Parameters:
prefix - the prefix

getPrefix

public String getPrefix(String uri)
Gets the namespace prefix associated with a URI.

Specified by:
getPrefix in interface NamespaceContext
Parameters:
uri - the URI

getPrefixes

public Iterator getPrefixes(String namespaceURI)
Gets the namespace prefix iterator associated with a URI.
This method always returns null.

Specified by:
getPrefixes in interface NamespaceContext
Parameters:
namespaceURI - uri the URI

Esri Geoportal Server
1.0

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