1 23 24 package org.enhydra.xml.xmlc.dom.lazydom; 25 26 import org.enhydra.xml.lazydom.TemplateDOM; 27 import org.enhydra.xml.lazydom.html.LazyHTMLDocument; 28 import org.enhydra.xml.xmlc.dom.HTMLDomFactoryMethods; 29 import org.enhydra.xml.xmlc.dom.XMLCDomFactory; 30 import org.w3c.dom.Document ; 31 import org.w3c.dom.DocumentType ; 32 import org.w3c.dom.Element ; 33 34 37 public class LazyHTMLDomFactory extends LazyDomFactory 38 implements XMLCDomFactory { 39 40 43 public Document createDocument(String namespaceURI, 44 String qualifiedName, 45 DocumentType docType) { 46 LazyHTMLDocument doc = new LazyHTMLDocument(null); 47 doc.getDocumentElement(); 49 return doc; 50 } 51 52 56 public Document createDocument(TemplateDOM templateDOM) { 57 return new LazyHTMLDocument(templateDOM); 58 } 59 60 63 public String getMIMEType() { 64 return "text/html"; 65 } 66 67 70 public String getBaseClassName() { 71 return HTMLDomFactoryMethods.getBaseClassName(); 72 } 73 74 77 public String [] getInterfaceNames() { 78 return HTMLDomFactoryMethods.getInterfaceNames(); 79 } 80 81 84 public String [] getElementClassNames(Element element) { 85 return HTMLDomFactoryMethods.getElementClassNames(element); 86 } 87 88 91 public boolean isURLAttribute(Element element, 92 String attrName) { 93 return HTMLDomFactoryMethods.isURLAttribute(element, attrName); 94 } 95 } 96 | Popular Tags |