org.apache.xerces.dom3
Class DOMImplementationRegistry
java.lang.Object
|
+--org.apache.xerces.dom3.DOMImplementationRegistry
- public class DOMImplementationRegistry
- extends java.lang.Object
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
|
Method Summary |
static void |
addSource(DOMImplementationSource s)
Register an implementation. |
static org.w3c.dom.DOMImplementation |
getDOMImplementation(java.lang.String features)
Return the first registered implementation that has the desired features,
or null if none is found. |
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 org.w3c.dom.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.
addSource
public static void addSource(DOMImplementationSource s)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
- Register an implementation.
Copyright © 1999-2001 Apache XML Project. All Rights Reserved.