org.apache.axiom.om.impl.llom.util
Class NamespaceContextImpl

java.lang.Object
  extended by org.apache.axiom.om.impl.llom.util.NamespaceContextImpl
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext

public class NamespaceContextImpl
extends Object
implements javax.xml.namespace.NamespaceContext


Field Summary
protected  Map namespaces
           
 
Constructor Summary
NamespaceContextImpl(Map map)
           
 
Method Summary
 String getNamespaceURI(String prefix)
          Get the URI given a prefix
 String getPrefix(String nsURI)
          Get the prefix for a uri
 Iterator getPrefixes(String nsURI)
          Get list of prefixes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

namespaces

protected Map namespaces
Constructor Detail

NamespaceContextImpl

public NamespaceContextImpl(Map map)
Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Get the URI given a prefix

Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext
Parameters:
prefix -
Returns:
uri string

getPrefix

public String getPrefix(String nsURI)
Get the prefix for a uri

Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext
Parameters:
nsURI -
Returns:
prefix string

getPrefixes

public Iterator getPrefixes(String nsURI)
Get list of prefixes

Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext
Parameters:
nsURI -
Returns:
iterator (of strings)


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.