com.sun.xml.wss.impl.dsig
Class NamespaceContextImpl

java.lang.Object
  extended by com.sun.xml.wss.impl.dsig.NamespaceContextImpl
All Implemented Interfaces:
NamespaceContext

public class NamespaceContextImpl
extends Object
implements NamespaceContext

Implements NamespaceContext . TODO : Performance Improvements.


Constructor Summary
NamespaceContextImpl()
           
 
Method Summary
 void add(String prefix, String uri)
          Add prefix and namespaceuri to be associated with the prefix.
 Map getMap()
           
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator getPrefixes(String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceContextImpl

public NamespaceContextImpl()
Method Detail

add

public void add(String prefix,
                String uri)
Add prefix and namespaceuri to be associated with the prefix.

Parameters:
prefix - Namespace Prefix
uri - NamespaceURI

getNamespaceURI

public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface NamespaceContext
Parameters:
prefix -
Returns:

getPrefix

public String getPrefix(String namespaceURI)
Specified by:
getPrefix in interface NamespaceContext
Parameters:
namespaceURI -
Returns:
NamespaceURI associated with the prefix

getPrefixes

public Iterator getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface NamespaceContext
Parameters:
namespaceURI -
Returns:
Iterator to list of prefixes associated with the namespaceURI

getMap

public Map getMap()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.