jlibs.xml
Class NamespaceMap

java.lang.Object
  extended by jlibs.core.util.ContextMap<String,String>
      extended by jlibs.xml.NamespaceMap
All Implemented Interfaces:
NamespaceContext

public class NamespaceMap
extends ContextMap<String,String>
implements NamespaceContext

NamespaceContext implementation using ContextMap

Author:
Santhosh Kumar T

Nested Class Summary
static class NamespaceMap.Handler
           
 
Constructor Summary
NamespaceMap()
           
NamespaceMap(ContextMap<String,String> parent)
           
 
Method Summary
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator<String> getPrefixes(String namespaceURI)
           
 NamespaceMap parent()
           
 
Methods inherited from class jlibs.core.util.ContextMap
clear, createMap, get, keys, map, put, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespaceMap

public NamespaceMap()

NamespaceMap

public NamespaceMap(ContextMap<String,String> parent)
Method Detail

parent

public NamespaceMap parent()
Overrides:
parent in class ContextMap<String,String>

getNamespaceURI

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

getPrefix

public String getPrefix(String namespaceURI)
Specified by:
getPrefix in interface NamespaceContext

getPrefixes

public Iterator<String> getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface NamespaceContext


Copyright © 2015. All rights reserved.