org.enhydra.xml.xmlc.dom.lazydom
Class LazyDomFactory

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
        |
        +--org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory
All Implemented Interfaces:
XMLCDomFactory
Direct Known Subclasses:
LazyHTMLDomFactory

public class LazyDomFactory
extends XercesDomFactory
implements XMLCDomFactory

Lazy DOM factory for creating DocumentType and Document objects.


Inner classes inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
XercesDomFactory.LinkedXercesDocument
 
Constructor Summary
LazyDomFactory()
           
 
Method Summary
 AccessorGenerator createAccessorGenerator(Document document)
          Create an AccessorGenerator object for this DOM.
 DocBuilderGenerator createDocBuilderGenerator(Document document)
          Create an DocBuilderGenerator object for this DOM.
 Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType)
          Creates an XML Document object of the specified type.
 Document createDocument(TemplateDOM templateDOM)
          Create a LazyDocument from a template.
 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId, String internalSubset)
          Creates an empty DocumentType node.
 String nodeClassToInterface(Node node)
          Convert an implementation-specific DOM node class name to the external interface or class name that should be used to reference it.
 
Methods inherited from class org.enhydra.xml.xmlc.dom.xerces.XercesDomFactory
getBaseClassName, getElementClassNames, getInterfaceNames, getMIMEType, isURLAttribute
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.enhydra.xml.xmlc.dom.XMLCDomFactory
getBaseClassName, getElementClassNames, getInterfaceNames, getMIMEType, isURLAttribute
 

Constructor Detail

LazyDomFactory

public LazyDomFactory()
Method Detail

createDocumentType

public DocumentType createDocumentType(String qualifiedName,
                                       String publicId,
                                       String systemId,
                                       String internalSubset)
Description copied from interface: XMLCDomFactory
Creates an empty DocumentType node.
Specified by:
createDocumentType in interface XMLCDomFactory
Overrides:
createDocumentType in class XercesDomFactory
See Also:
XMLCDomFactory.createDocumentType(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

createDocument

public Document createDocument(String namespaceURI,
                               String qualifiedName,
                               DocumentType docType)
Description copied from interface: XMLCDomFactory
Creates an XML Document object of the specified type. The document element should be created. A HTML document should only have the document element, which differs from the DOMImplementation specification, however it makes code generation easier and its not expected that there will be many custom HTML DOM factories.
Specified by:
createDocument in interface XMLCDomFactory
Overrides:
createDocument in class XercesDomFactory
See Also:
XMLCDomFactory.createDocument(java.lang.String, java.lang.String, org.w3c.dom.DocumentType)

createDocument

public Document createDocument(TemplateDOM templateDOM)
Create a LazyDocument from a template.
See Also:
XMLCDomFactory.createDocument(java.lang.String, java.lang.String, org.w3c.dom.DocumentType)

nodeClassToInterface

public String nodeClassToInterface(Node node)
Description copied from interface: XMLCDomFactory
Convert an implementation-specific DOM node class name to the external interface or class name that should be used to reference it. This could be a org.w3c.dom interface or other interface or class.
Specified by:
nodeClassToInterface in interface XMLCDomFactory
Overrides:
nodeClassToInterface in class XercesDomFactory
See Also:
XMLCDomFactory.nodeClassToInterface(org.w3c.dom.Node)

createAccessorGenerator

public AccessorGenerator createAccessorGenerator(Document document)
Description copied from interface: XMLCDomFactory
Create an AccessorGenerator object for this DOM. Normally, this method is inherited from the DOM that the base DOM implementation a.
Specified by:
createAccessorGenerator in interface XMLCDomFactory
Overrides:
createAccessorGenerator in class XercesDomFactory
See Also:
XMLCDomFactory.createAccessorGenerator(org.w3c.dom.Document)

createDocBuilderGenerator

public DocBuilderGenerator createDocBuilderGenerator(Document document)
Description copied from interface: XMLCDomFactory
Create an DocBuilderGenerator object for this DOM. Normally, this method is inherited from the DOM that the base DOM implementation a.
Specified by:
createDocBuilderGenerator in interface XMLCDomFactory
Overrides:
createDocBuilderGenerator in class XercesDomFactory
See Also:
XMLCDomFactory.createDocBuilderGenerator(org.w3c.dom.Document)


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.