net.sf.xolite.impl
Class MapPrefixResolver

java.lang.Object
  extended by net.sf.xolite.impl.MapPrefixResolver
All Implemented Interfaces:
NamespaceContext

public class MapPrefixResolver
extends Object
implements NamespaceContext

Default (Map based) implementation of the NamespaceContext interface.


Constructor Summary
MapPrefixResolver()
           
 
Method Summary
 void addAll(MapPrefixResolver other)
           
 void addPrefixMapping(String prefix, String namespaceURI)
           
 void clear()
           
 String getNamespaceURI(String prefix)
          Get namespace URI corresponding to the given prefix.
 String getPrefix(String namespaceURI)
          Get the first prefix mapped to the given namespace.
 Iterator<String> getPrefixes(String namespaceURI)
          Get all the prefixes mapped to the given namespace.
 void removePrefixMapping(String prefix, String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPrefixResolver

public MapPrefixResolver()
Method Detail

addAll

public void addAll(MapPrefixResolver other)

addPrefixMapping

public void addPrefixMapping(String prefix,
                             String namespaceURI)

removePrefixMapping

public void removePrefixMapping(String prefix,
                                String namespaceURI)

clear

public void clear()

getNamespaceURI

public String getNamespaceURI(String prefix)
Get namespace URI corresponding to the given prefix.

Specified by:
getNamespaceURI in interface NamespaceContext
See Also:
NamespaceContext.getNamespaceURI(java.lang.String)

getPrefix

public String getPrefix(String namespaceURI)
Get the first prefix mapped to the given namespace.

Specified by:
getPrefix in interface NamespaceContext
See Also:
NamespaceContext.getPrefix(java.lang.String)

getPrefixes

public Iterator<String> getPrefixes(String namespaceURI)
Get all the prefixes mapped to the given namespace.

Specified by:
getPrefixes in interface NamespaceContext
See Also:
NamespaceContext.getPrefixes(java.lang.String)


Copyright © 2012. All Rights Reserved.