org.enhydra.barracuda.core.util.dom
Class DefaultDOMFactory

java.lang.Object
  |
  +--org.enhydra.barracuda.core.util.dom.DefaultDOMFactory
All Implemented Interfaces:
DOMFactory

public class DefaultDOMFactory
extends java.lang.Object
implements DOMFactory

Default implementation of a DOMFactory. This class will load a DOM using XMLCFactory.


Constructor Summary
DefaultDOMFactory()
           
 
Method Summary
 org.w3c.dom.Document getInstance(java.lang.Class cl)
          Get a new instance of the DOM that is associated with the given class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDOMFactory

public DefaultDOMFactory()
Method Detail

getInstance

public org.w3c.dom.Document getInstance(java.lang.Class cl)
                                 throws java.io.IOException
Get a new instance of the DOM that is associated with the given class.

Specified by:
getInstance in interface DOMFactory
Parameters:
cl - the class of DOM to be loaded. In this case, this class should implement XMLObject or the underlying XMLCFactory will not be able to instantiate it.
Returns:
the document that most closely corresponds with the requested class/ViewCapabilities combination.
java.io.IOException


Copyright © 2001 Enhydra.org