1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class html extends MultiPartElement implements Printable 71 { 72 public html() 73 { 74 setElementType("html"); 75 setCase(LOWERCASE); 76 setAttributeQuote(true); 77 addAttribute("xmlns","http://www.w3.org/1999/xhtml"); 78 } 79 80 84 public html(String value) 85 { 86 setElementType("html"); 87 addElement(value); 88 } 89 90 94 public html(Element value) 95 { 96 setElementType("html"); 97 addElement(value); 98 } 99 100 104 public Element setLang(String lang) 105 { 106 addAttribute("lang",lang); 107 addAttribute("xml:lang",lang); 108 return this; 109 } 110 111 116 public html addElement(String hashcode,Element element) 117 { 118 addElementToRegistry(hashcode,element); 119 return(this); 120 } 121 122 127 public html addElement(String hashcode,String element) 128 { 129 addElementToRegistry(hashcode,element); 130 return(this); 131 } 132 133 137 public html addElement(Element element) 138 { 139 addElementToRegistry(element); 140 return(this); 141 } 142 146 public html addElement(String element) 147 { 148 addElementToRegistry(element); 149 return(this); 150 } 151 155 public html removeElement(String hashcode) 156 { 157 removeElementFromRegistry(hashcode); 158 return(this); 159 } 160 } 161 | Popular Tags |