类 SimpleNamespaceContext
java.lang.Object
cn.taketoday.util.xml.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- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidbindDefaultNamespaceUri(String namespaceUri) Bind the given namespace as default namespace.voidbindNamespaceUri(String prefix, String namespaceUri) Bind the given prefix to the given namespace.voidclear()Remove all declared prefixes.Return all declared prefixes.getNamespaceURI(String prefix) getPrefixes(String namespaceUri) voidremoveBinding(String prefix) Remove the given prefix from this context.voidsetBindings(Map<String, String> bindings) Set the bindings for this namespace context.
-
构造器详细资料
-
SimpleNamespaceContext
public SimpleNamespaceContext()
-
-
方法详细资料
-
getNamespaceURI
- 指定者:
getNamespaceURI在接口中NamespaceContext
-
getPrefix
- 指定者:
getPrefix在接口中NamespaceContext
-
getPrefixes
- 指定者:
getPrefixes在接口中NamespaceContext
-
setBindings
Set the bindings for this namespace context. The supplied map must consist of string key value pairs. -
bindDefaultNamespaceUri
Bind the given namespace as default namespace.- 参数:
namespaceUri- the namespace uri
-
bindNamespaceUri
Bind the given prefix to the given namespace.- 参数:
prefix- the namespace prefixnamespaceUri- the namespace uri
-
removeBinding
Remove the given prefix from this context.- 参数:
prefix- the prefix to be removed
-
clear
public void clear()Remove all declared prefixes. -
getBoundPrefixes
Return all declared prefixes.
-