org.kuali.rice.ken.util
Class ConfiguredNamespaceContext

java.lang.Object
  extended by org.kuali.rice.ken.util.ConfiguredNamespaceContext
All Implemented Interfaces:
NamespaceContext

public class ConfiguredNamespaceContext
extends Object
implements NamespaceContext

XPath NamespaceContext that is configured with a predefined prefix->NS map.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ConfiguredNamespaceContext(Map<String,String> prefixToNamespace)
          Constructs a ConfiguredNamespaceContext.java.
 
Method Summary
 String getNamespaceURI(String prefix)
           
 String getPrefix(String namespaceURI)
           
 Iterator<String> getPrefixes(String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredNamespaceContext

public ConfiguredNamespaceContext(Map<String,String> prefixToNamespace)
Constructs a ConfiguredNamespaceContext.java.

Parameters:
prefixToNamespace -
Method Detail

getNamespaceURI

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

getPrefix

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

getPrefixes

public Iterator<String> getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface NamespaceContext
See Also:
NamespaceContext.getPrefixes(java.lang.String)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.