Save This Page
Home » xmlbeans.090113 » org.w3c » dom » bootstrap » [javadoc | source]
org.w3c.dom.bootstrap
public final class: DOMImplementationRegistry [javadoc | source]
java.lang.Object
   org.w3c.dom.bootstrap.DOMImplementationRegistry
A factory that enables applications to obtain instances of DOMImplementation.

Example:

// get an instance of the DOMImplementation registry
DOMImplementationRegistry registry =
DOMImplementationRegistry.newInstance();
// get a DOM implementation the Level 3 XML module
DOMImplementation domImpl =
registry.getDOMImplementation("XML 3.0");

This provides an application with an implementation-independent starting point. DOM implementations may modify this class to meet new security standards or to provide *additional* fallbacks for the list of DOMImplementationSources.

Field Summary
public static final  String PROPERTY    The system property to specify the DOMImplementationSource class names. 
Method from org.w3c.dom.bootstrap.DOMImplementationRegistry Summary:
addSource,   getDOMImplementation,   getDOMImplementationList,   newInstance
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.w3c.dom.bootstrap.DOMImplementationRegistry Detail:
 public  void addSource(DOMImplementationSource s) 
    Register an implementation.
 public DOMImplementation getDOMImplementation(String features) 
    Return the first implementation that has the desired features, or null if none is found.
 public DOMImplementationList getDOMImplementationList(String features) 
    Return a list of implementations that support the desired features.
 public static DOMImplementationRegistry newInstance() throws ClassNotFoundException, ClassCastException, IllegalAccessException, InstantiationException 
    Obtain a new instance of a DOMImplementationRegistry. The DOMImplementationRegistry is initialized by the application or the implementation, depending on the context, by first checking the value of the Java system property org.w3c.dom.DOMImplementationSourceList and the the service provider whose contents are at "META_INF/services/org.w3c.dom.DOMImplementationSourceList" The value of this property is a white-space separated list of names of availables classes implementing the DOMImplementationSource interface. Each class listed in the class name list is instantiated and any exceptions encountered are thrown to the application.