org.w3c.dom
Class DOMImplementationRegistry
java.lang.Object
|
+--org.w3c.dom.DOMImplementationRegistry
- public class DOMImplementationRegistry
- extends java.lang.Object
DOM Level 3 WD Experimental:
The DOM Level 3 specification is at the stage
of Working Draft, which represents work in
progress and thus may be updated, replaced,
or obsoleted by other documents at any time.
This class holds the list of registered DOMImplementations. It is first
initialized based on the content of the space separated list of classnames
contained in the System Property "org.w3c.dom.DOMImplementationSourceList".
Subsequently, additional sources can be registered and implementations
can be queried based on a list of requested features.
This provides an application with an implementation independent starting
point.
- See Also:
DOMImplementation
,
DOMImplementationSource
Field Summary |
static java.lang.String |
PROPERTY
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTY
public static java.lang.String PROPERTY
DOMImplementationRegistry
public DOMImplementationRegistry()
getDOMImplementation
public static DOMImplementation getDOMImplementation(java.lang.String features)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Return the first registered implementation that has the desired features,
or null if none is found.
- Parameters:
features
- A string that specifies which features 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 1.0 Traversal Events 2.0"
- Returns:
- An implementation that has the desired features, or
null
if this source has none.
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
addSource
public static void addSource(DOMImplementationSource s)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Register an implementation.
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
Copyright © 1999-2002 Apache XML Project. All Rights Reserved.