类 XmlUtil.UniversalNamespaceCache
java.lang.Object
com.luna.common.xml.XmlUtil.UniversalNamespaceCache
- 所有已实现的接口:
NamespaceContext
- 封闭类:
- XmlUtil
全局命名空间上下文
见:https://www.ibm.com/developerworks/cn/xml/x-nmspccontext/
见:https://www.ibm.com/developerworks/cn/xml/x-nmspccontext/
-
构造器概要
构造器构造器说明UniversalNamespaceCache(Node node, boolean toplevelOnly) This constructor parses the document and stores all namespaces it can find. -
方法概要
修饰符和类型方法说明getNamespaceURI(String prefix) This method is called by XPath.This method is not needed in this context, but can be implemented in a similar way.getPrefixes(String namespaceURI)
-
构造器详细资料
-
UniversalNamespaceCache
This constructor parses the document and stores all namespaces it can find. If toplevelOnly is true, only namespaces in the root are used.- 参数:
node- source NodetoplevelOnly- restriction of the search to enhance performance
-
-
方法详细资料
-
getNamespaceURI
This method is called by XPath. It returns the default namespace, if the prefix is null or "".- 指定者:
getNamespaceURI在接口中NamespaceContext- 参数:
prefix- to search for- 返回:
- uri
-
getPrefix
This method is not needed in this context, but can be implemented in a similar way.- 指定者:
getPrefix在接口中NamespaceContext
-
getPrefixes
- 指定者:
getPrefixes在接口中NamespaceContext
-