1 57 package org.enhydra.xml.xhtml.dom.xerces; 58 59 63 import java.util.HashMap ; 64 65 import org.enhydra.apache.html.dom.HTMLAnchorElementImpl; 66 import org.enhydra.xml.xmlc.XMLObject; 67 import org.enhydra.xml.xmlc.XMLObjectLink; 68 import org.w3c.dom.DocumentType ; 69 import org.w3c.dom.html.HTMLDocument; 70 71 77 public class XHTMLDocumentImpl extends XHTMLDocumentBase implements HTMLDocument, XMLObjectLink { 78 87 private static HashMap fElementTypes; 88 89 92 public XHTMLDocumentImpl() { 93 super(fElementTypes); 94 } 95 96 99 public XHTMLDocumentImpl(DocumentType doctype) { 100 super(doctype, fElementTypes); 101 } 102 105 static { 106 fElementTypes = new HashMap (); 107 fElementTypes.put("basefont", XHTMLBaseFontElementImpl.class); 108 fElementTypes.put("button", XHTMLButtonElementImpl.class); 109 fElementTypes.put("textarea", XHTMLTextAreaElementImpl.class); 110 fElementTypes.put("em", XHTMLEmElementImpl.class); 111 fElementTypes.put("small", XHTMLSmallElementImpl.class); 112 fElementTypes.put("area", XHTMLAreaElementImpl.class); 113 fElementTypes.put("noframes", XHTMLNoframesElementImpl.class); 114 fElementTypes.put("bdo", XHTMLBdoElementImpl.class); 115 fElementTypes.put("form", XHTMLFormElementImpl.class); 116 fElementTypes.put("link", XHTMLLinkElementImpl.class); 117 fElementTypes.put("label", XHTMLLabelElementImpl.class); 118 fElementTypes.put("dt", XHTMLDtElementImpl.class); 119 fElementTypes.put("span", XHTMLSpanElementImpl.class); 120 fElementTypes.put("isindex", XHTMLIsIndexElementImpl.class); 121 fElementTypes.put("title", XHTMLTitleElementImpl.class); 122 fElementTypes.put("strong", XHTMLStrongElementImpl.class); 123 fElementTypes.put("script", XHTMLScriptElementImpl.class); 124 fElementTypes.put("div", XHTMLDivElementImpl.class); 125 fElementTypes.put("dl", XHTMLDListElementImpl.class); 126 fElementTypes.put("blockquote", XHTMLQuoteElementImpl.class); 127 fElementTypes.put("kbd", XHTMLKbdElementImpl.class); 128 fElementTypes.put("menu", XHTMLMenuElementImpl.class); 129 fElementTypes.put("body", XHTMLBodyElementImpl.class); 130 fElementTypes.put("dir", XHTMLDirectoryElementImpl.class); 131 fElementTypes.put("ins", XHTMLModElementImpl.class); 132 fElementTypes.put("map", XHTMLMapElementImpl.class); 133 fElementTypes.put("dd", XHTMLDdElementImpl.class); 134 fElementTypes.put("fieldset", XHTMLFieldSetElementImpl.class); 135 fElementTypes.put("head", XHTMLHeadElementImpl.class); 136 fElementTypes.put("col", XHTMLTableColElementImpl.class); 137 fElementTypes.put("base", XHTMLBaseElementImpl.class); 138 fElementTypes.put("big", XHTMLBigElementImpl.class); 139 fElementTypes.put("meta", XHTMLMetaElementImpl.class); 140 fElementTypes.put("code", XHTMLCodeElementImpl.class); 141 fElementTypes.put("tbody", XHTMLTbodyElementImpl.class); 142 fElementTypes.put("option", XHTMLOptionElementImpl.class); 143 fElementTypes.put("u", XHTMLUElementImpl.class); 144 fElementTypes.put("s", XHTMLSElementImpl.class); 145 fElementTypes.put("q", XHTMLQuoteElementImpl.class); 146 fElementTypes.put("p", XHTMLParagraphElementImpl.class); 147 fElementTypes.put("ol", XHTMLOListElementImpl.class); 148 fElementTypes.put("thead", XHTMLTheadElementImpl.class); 149 fElementTypes.put("ul", XHTMLUListElementImpl.class); 150 fElementTypes.put("i", XHTMLIElementImpl.class); 151 fElementTypes.put("pre", XHTMLPreElementImpl.class); 152 fElementTypes.put("optgroup", XHTMLOptGroupElementImpl.class); 153 fElementTypes.put("img", XHTMLImageElementImpl.class); 154 fElementTypes.put("caption", XHTMLTableCaptionElementImpl.class); 155 fElementTypes.put("b", XHTMLBElementImpl.class); 156 fElementTypes.put("a", XHTMLAnchorElementImpl.class); 157 fElementTypes.put("frame", XHTMLFrameElementImpl.class); 158 fElementTypes.put("br", XHTMLBRElementImpl.class); 159 fElementTypes.put("style", XHTMLStyleElementImpl.class); 160 fElementTypes.put("hr", XHTMLHRElementImpl.class); 161 fElementTypes.put("param", XHTMLParamElementImpl.class); 162 fElementTypes.put("table", XHTMLTableElementImpl.class); 163 fElementTypes.put("applet", XHTMLAppletElementImpl.class); 164 fElementTypes.put("tt", XHTMLTtElementImpl.class); 165 fElementTypes.put("tr", XHTMLTableRowElementImpl.class); 166 fElementTypes.put("th", XHTMLTableCellElementImpl.class); 167 fElementTypes.put("center", XHTMLCenterElementImpl.class); 168 fElementTypes.put("td", XHTMLTableCellElementImpl.class); 169 fElementTypes.put("samp", XHTMLSampElementImpl.class); 170 fElementTypes.put("tfoot", XHTMLTfootElementImpl.class); 171 fElementTypes.put("font", XHTMLFontElementImpl.class); 172 fElementTypes.put("dfn", XHTMLDfnElementImpl.class); 173 fElementTypes.put("noscript", XHTMLNoscriptElementImpl.class); 174 fElementTypes.put("object", XHTMLObjectElementImpl.class); 175 fElementTypes.put("colgroup", XHTMLTableColElementImpl.class); 176 fElementTypes.put("sup", XHTMLSupElementImpl.class); 177 fElementTypes.put("html", XHTMLHtmlElementImpl.class); 178 fElementTypes.put("h6", XHTMLHeadingElementImpl.class); 179 fElementTypes.put("h5", XHTMLHeadingElementImpl.class); 180 fElementTypes.put("h4", XHTMLHeadingElementImpl.class); 181 fElementTypes.put("h3", XHTMLHeadingElementImpl.class); 182 fElementTypes.put("frameset", XHTMLFrameSetElementImpl.class); 183 fElementTypes.put("h2", XHTMLHeadingElementImpl.class); 184 fElementTypes.put("h1", XHTMLHeadingElementImpl.class); 185 fElementTypes.put("iframe", XHTMLIFrameElementImpl.class); 186 fElementTypes.put("strike", XHTMLStrikeElementImpl.class); 187 fElementTypes.put("sub", XHTMLSubElementImpl.class); 188 fElementTypes.put("acronym", XHTMLAcronymElementImpl.class); 189 fElementTypes.put("select", XHTMLSelectElementImpl.class); 190 fElementTypes.put("del", XHTMLModElementImpl.class); 191 fElementTypes.put("li", XHTMLLIElementImpl.class); 192 fElementTypes.put("cite", XHTMLCiteElementImpl.class); 193 fElementTypes.put("var", XHTMLVarElementImpl.class); 194 fElementTypes.put("legend", XHTMLLegendElementImpl.class); 195 fElementTypes.put("abbr", XHTMLAbbrElementImpl.class); 196 fElementTypes.put("input", XHTMLInputElementImpl.class); 197 fElementTypes.put("address", XHTMLAddressElementImpl.class);; 198 } 199 200 204 207 private XMLObject fXmlObjectLink; 208 209 212 public void setXMLObject(XMLObject xmlObject) { 213 fXmlObjectLink = xmlObject; 214 } 215 216 219 public XMLObject getXMLObject() { 220 return fXmlObjectLink; 221 } 222 223 } 224 | Popular Tags |