Package com.sun.xml.wss.impl.dsig
Class NamespaceContextImpl
- java.lang.Object
-
- 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
Constructors Constructor Description NamespaceContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String prefix, String uri)Add prefix and namespaceuri to be associated with the prefix.MapgetMap()StringgetNamespaceURI(String prefix)StringgetPrefix(String namespaceURI)IteratorgetPrefixes(String namespaceURI)
-
-
-
Method Detail
-
add
public void add(String prefix, String uri)
Add prefix and namespaceuri to be associated with the prefix.- Parameters:
prefix- Namespace Prefixuri- NamespaceURI
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURIin interfaceNamespaceContext- Parameters:
prefix-- Returns:
-
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefixin interfaceNamespaceContext- Parameters:
namespaceURI-- Returns:
- NamespaceURI associated with the prefix
-
getPrefixes
public Iterator getPrefixes(String namespaceURI)
- Specified by:
getPrefixesin interfaceNamespaceContext- Parameters:
namespaceURI-- Returns:
- Iterator to list of prefixes associated with the namespaceURI
-
getMap
public Map getMap()
-
-