spring-framework / org.springframework.util.xml / SimpleNamespaceContext

SimpleNamespaceContext

open class SimpleNamespaceContext : NamespaceContext

Simple javax.xml.namespace.NamespaceContext implementation. Follows the standard NamespaceContext contract, and is loadable via a java.util.Map or java.util.Properties object

Author
Arjen Poutsma

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

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

Functions

bindDefaultNamespaceUri

open fun bindDefaultNamespaceUri(namespaceUri: String): Unit

Bind the given namespace as default namespace.

bindNamespaceUri

open fun bindNamespaceUri(prefix: String, namespaceUri: String): Unit

Bind the given prefix to the given namespace.

clear

open fun clear(): Unit

Remove all declared prefixes.

getBoundPrefixes

open fun getBoundPrefixes(): MutableIterator<String>

Return all declared prefixes.

getNamespaceURI

open fun getNamespaceURI(prefix: String): String

getPrefix

open fun getPrefix(namespaceUri: String): String

getPrefixes

open fun getPrefixes(namespaceUri: String): MutableIterator<String>

removeBinding

open fun removeBinding(prefix: String): Unit

Remove the given prefix from this context.

setBindings

open fun setBindings(bindings: MutableMap<String, String>): Unit

Set the bindings for this namespace context. The supplied map must consist of string key value pairs.