1 23 24 package org.enhydra.xml.xmlc.dom.xerces; 25 26 import org.enhydra.apache.html.dom.HTMLDocumentImpl; 27 import org.enhydra.xml.xmlc.XMLObject; 28 import org.enhydra.xml.xmlc.XMLObjectLink; 29 import org.enhydra.xml.xmlc.dom.HTMLDomFactoryMethods; 30 import org.enhydra.xml.xmlc.dom.XMLCDomFactory; 31 import org.w3c.dom.Document ; 32 import org.w3c.dom.DocumentType ; 33 import org.w3c.dom.Element ; 34 import org.w3c.dom.html.HTMLDocument; 35 36 40 public class XercesHTMLDomFactory extends XercesDomFactory 41 implements XMLCDomFactory { 42 50 public class LinkedXercesDocument extends HTMLDocumentImpl 51 implements XMLObjectLink { 52 53 private XMLObject fXmlObjectLink; 54 55 56 public LinkedXercesDocument() { 57 } 58 59 60 public void setXMLObject(XMLObject xmlObject) { 61 fXmlObjectLink = xmlObject; 62 } 63 64 65 public XMLObject getXMLObject() { 66 return fXmlObjectLink; 67 } 68 } 69 70 75 public Document createDocument(String namespaceURI, 76 String qualifiedName, 77 DocumentType docType) { 78 HTMLDocument doc = new XercesLinkedHTMLDocument(); 79 80 doc.getDocumentElement(); 82 return doc; 83 } 84 85 88 public String getMIMEType() { 89 return "text/html"; 90 } 91 92 95 public String getBaseClassName() { 96 return HTMLDomFactoryMethods.getBaseClassName(); 97 } 98 99 102 public String [] getInterfaceNames() { 103 return HTMLDomFactoryMethods.getInterfaceNames(); 104 } 105 106 109 public String [] getElementClassNames(Element element) { 110 return HTMLDomFactoryMethods.getElementClassNames(element); 111 } 112 113 116 public boolean isURLAttribute(Element element, 117 String attrName) { 118 return HTMLDomFactoryMethods.isURLAttribute(element, attrName); 119 } 120 } 121 | Popular Tags |