|
|||||||||
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
Field Summary | |
---|---|
private java.lang.String |
defaultNamespaceUri
|
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
namespaceUriToPrefixes
|
private java.util.Map<java.lang.String,java.lang.String> |
prefixToNamespaceUri
|
Constructor Summary | |
---|---|
SimpleNamespaceContext()
|
Method Summary | |
---|---|
void |
bindDefaultNamespaceUri(java.lang.String namespaceUri)
Binds the given namespace as default namespace. |
void |
bindNamespaceUri(java.lang.String prefix,
java.lang.String namespaceUri)
Binds the given prefix to the given namespace. |
void |
clear()
Removes all declared prefixes. |
java.util.Iterator<java.lang.String> |
getBoundPrefixes()
Returns all declared prefixes. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
|
java.lang.String |
getPrefix(java.lang.String namespaceUri)
|
java.util.Iterator |
getPrefixes(java.lang.String namespaceUri)
|
private java.util.List<java.lang.String> |
getPrefixesInternal(java.lang.String namespaceUri)
|
void |
removeBinding(java.lang.String prefix)
Removes the given prefix from this context. |
void |
setBindings(java.util.Map<java.lang.String,java.lang.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 |
Field Detail |
---|
private java.util.Map<java.lang.String,java.lang.String> prefixToNamespaceUri
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> namespaceUriToPrefixes
private java.lang.String defaultNamespaceUri
Constructor Detail |
---|
public SimpleNamespaceContext()
Method Detail |
---|
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in interface javax.xml.namespace.NamespaceContext
public java.lang.String getPrefix(java.lang.String namespaceUri)
getPrefix
in interface javax.xml.namespace.NamespaceContext
public java.util.Iterator getPrefixes(java.lang.String namespaceUri)
getPrefixes
in interface javax.xml.namespace.NamespaceContext
public void setBindings(java.util.Map<java.lang.String,java.lang.String> bindings)
bindings
- the bindingspublic void bindDefaultNamespaceUri(java.lang.String namespaceUri)
namespaceUri
- the namespace uripublic void bindNamespaceUri(java.lang.String prefix, java.lang.String namespaceUri)
prefix
- the namespace prefixnamespaceUri
- the namespace uripublic void clear()
public java.util.Iterator<java.lang.String> getBoundPrefixes()
private java.util.List<java.lang.String> getPrefixesInternal(java.lang.String namespaceUri)
public void removeBinding(java.lang.String prefix)
prefix
- the prefix to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |