Class JSTLXPathNamespaceContext
java.lang.Object
org.apache.taglibs.standard.tag.common.xml.JSTLXPathNamespaceContext
- All Implemented Interfaces:
NamespaceContext
Implemenation of XML Namespace context processing given a URI or prefix
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor which would create empty HashMap of namespaces -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNamespace(String prefix, String uri) Populate map of Prefix and NameSpace URI's entriesgetNamespaceURI(String prefix) Get Namespace URI bound to a prefix in the current scopeGet Prefix bound to Namespace URI in the current scopegetPrefixes(String namespaceURI) Get all Prefixes bound to Namespace URI in the current scope
-
Constructor Details
-
JSTLXPathNamespaceContext
public JSTLXPathNamespaceContext()No-arg constructor which would create empty HashMap of namespaces -
JSTLXPathNamespaceContext
-
-
Method Details
-
getNamespaceURI
Get Namespace URI bound to a prefix in the current scope- Specified by:
getNamespaceURIin interfaceNamespaceContext- Parameters:
prefix- Parameter- Returns:
- Namespace URI bound to prefix
- Throws:
IllegalArgumentException- if prefix is null
-
getPrefix
Get Prefix bound to Namespace URI in the current scope- Specified by:
getPrefixin interfaceNamespaceContext- Parameters:
namespaceURI- Namespace URI- Returns:
- Prefix bound to Namespace URI
- Throws:
IllegalArgumentException- if Namespace URI is null
-
getPrefixes
Get all Prefixes bound to Namespace URI in the current scope- Specified by:
getPrefixesin interfaceNamespaceContext- Parameters:
namespaceURI- Namespace URI- Returns:
- Iterator of Prefixes bound to Namespace URI
- Throws:
IllegalArgumentException- if Namespace URI is null
-
addNamespace
Populate map of Prefix and NameSpace URI's entries
-