|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.util.xml.SimpleNamespaceContext
public class SimpleNamespaceContext
Simple javax.xml.namespace.NamespaceContext
implementation. Follows the standard
NamespaceContext
contract, and is loadable via a java.util.Map
or
java.util.Properties
object
Constructor Summary | |
---|---|
SimpleNamespaceContext()
|
Method Summary | |
---|---|
void |
bindDefaultNamespaceUri(String namespaceUri)
Binds the given namespace as default namespace. |
void |
bindNamespaceUri(String prefix,
String namespaceUri)
Binds the given prefix to the given namespace. |
void |
clear()
Removes all declared prefixes. |
Iterator |
getBoundPrefixes()
Returns all declared prefixes. |
String |
getNamespaceURI(String prefix)
|
String |
getPrefix(String namespaceUri)
|
Iterator |
getPrefixes(String namespaceUri)
|
void |
removeBinding(String prefix)
Removes the given prefix from this context. |
void |
setBindings(Map<String,String> bindings)
Sets the bindings for this namespace context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleNamespaceContext()
Method Detail |
---|
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceUri)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespaceUri)
getPrefixes
in interface NamespaceContext
public void setBindings(Map<String,String> bindings)
bindings
- the bindingspublic void bindDefaultNamespaceUri(String namespaceUri)
namespaceUri
- the namespace uripublic void bindNamespaceUri(String prefix, String namespaceUri)
prefix
- the namespace prefixnamespaceUri
- the namespace uripublic void clear()
public Iterator getBoundPrefixes()
public void removeBinding(String prefix)
prefix
- the prefix to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |