public class JSTLXPathNamespaceContext extends Object implements NamespaceContext
Constructor and Description |
---|
JSTLXPathNamespaceContext()
No-arg constructor which would create empty HashMap of namespaces
|
JSTLXPathNamespaceContext(HashMap nses) |
Modifier and Type | Method and Description |
---|---|
protected void |
addNamespace(String prefix,
String uri)
Populate map of Prefix and NameSpace URI's entries
|
String |
getNamespaceURI(String prefix)
Get Namespace URI bound to a prefix in the current scope
|
String |
getPrefix(String namespaceURI)
Get Prefix bound to Namespace URI in the current scope
|
Iterator |
getPrefixes(String namespaceURI)
Get all Prefixes bound to Namespace URI in the current scope
|
public JSTLXPathNamespaceContext()
public JSTLXPathNamespaceContext(HashMap nses)
public String getNamespaceURI(String prefix) throws IllegalArgumentException
getNamespaceURI
in interface NamespaceContext
Prefix
- ParameterIllegalArgumentException
- if prefix is nullpublic String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
Namespace
- URIIllegalArgumentException
- if Namespace URI is nullpublic Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
Namespace
- URIIllegalArgumentException
- if Namespace URI is nullCopyright © 2012 JBoss by Red Hat. All Rights Reserved.