Most visited

Recently visited

Added in API level 8

DOMImplementationSource

public interface DOMImplementationSource

org.w3c.dom.DOMImplementationSource


该接口允许DOM实现者根据请求的特性和版本提供一个或多个实现, 每个实现的DOMImplementationSource对象都列在特定于绑定的可用源列表中,以便其DOMImplementation对象可用。

另见 Document Object Model (DOM) Level 3 Core Specification

Summary

Public methods

abstract DOMImplementation getDOMImplementation(String features)

一种请求支持指定功能的第一个DOM实现的方法。

abstract DOMImplementationList getDOMImplementationList(String features)

请求一个支持指定功能和版本的DOM实现列表的方法,如中所述。

Public methods

getDOMImplementation

Added in API level 8
DOMImplementation getDOMImplementation (String features)

一种请求支持指定功能的第一个DOM实现的方法。

Parameters
features String: A string that specifies which features and versions are required. This is a space separated list in which each feature is specified by its name optionally followed by a space and a version number. This method returns the first item of the list returned by getDOMImplementationList. As an example, the string "XML 3.0 Traversal +Events 2.0" will request a DOM implementation that supports the module "XML" for its 3.0 version, a module that support of the "Traversal" module for any version, and the module "Events" for its 2.0 version. The module "Events" must be accessible using the method Node.getFeature() and DOMImplementation.getFeature().
Returns
DOMImplementation The first DOM implementation that support the desired features, or null if this source has none.

getDOMImplementationList

Added in API level 8
DOMImplementationList getDOMImplementationList (String features)

请求一个支持指定功能和版本的DOM实现列表的方法,如中所述。

Parameters
features String: A string that specifies which features and versions are required. This is a space separated list in which each feature is specified by its name optionally followed by a space and a version number. This is something like: "XML 3.0 Traversal +Events 2.0"
Returns
DOMImplementationList A list of DOM implementations that support the desired features.

Hooray!