public class NamespaceContextImpl extends Object implements NamespaceContext
NamespaceContext
.Constructor and Description |
---|
NamespaceContextImpl()
Construct a new instance of NamespaceContext with no bindings.
|
NamespaceContextImpl(Map<String,String> bindings)
Construct a new instance of NamespaceContext with the bindings set using the given map.
|
Modifier and Type | Method and Description |
---|---|
String |
bindNamespaceURI(String prefix,
String namespaceURI)
Bind the prefix to the given namespace URI
|
void |
clear()
Clear all bindings from the NamespaceContext.
|
boolean |
equals(Object o) |
Map<String,String> |
getAllBindings()
Return a map of prefix/namespace bindings.
|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator<String> |
getPrefixes(String namespaceURI) |
int |
hashCode() |
String |
removeBinding(String prefix)
Remove the binding between a prefix and a namespace URI.
|
public NamespaceContextImpl()
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
public String bindNamespaceURI(String prefix, String namespaceURI)
prefix
- the prefixnamespaceURI
- the namespace to bind.null
if there was no binding.public String removeBinding(String prefix)
prefix
- the prefix to unbind.null
if there was no binding.public Map<String,String> getAllBindings()
public void clear()
Copyright © 2025 CESSDA ERIC. All rights reserved.