1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 71 public class meta extends SinglePartElement implements Printable 72 { 73 76 77 { 78 setElementType("meta"); 79 setCase(LOWERCASE); 80 setAttributeQuote(true); 81 setBeginEndModifier('/'); 82 } 83 84 87 public meta() 88 { 89 } 90 91 95 public meta setContent(String content) 96 { 97 addAttribute("content",content); 98 return this; 99 } 100 101 105 public meta setName(String name) 106 { 107 addAttribute("name",name); 108 return this; 109 } 110 111 115 public meta setScheme(String scheme) 116 { 117 addAttribute("scheme",scheme); 118 return this; 119 } 120 121 125 public meta setHttpEquiv(String http_equiv) 126 { 127 addAttribute("http-equiv",http_equiv); 128 return this; 129 } 130 131 135 public Element setLang(String lang) 136 { 137 addAttribute("lang",lang); 138 addAttribute("xml:lang",lang); 139 return this; 140 } 141 142 147 public meta addElement(String hashcode,Element element) 148 { 149 addElementToRegistry(hashcode,element); 150 return(this); 151 } 152 153 158 public meta addElement(String hashcode,String element) 159 { 160 addElementToRegistry(hashcode,element); 161 return(this); 162 } 163 164 168 public meta addElement(Element element) 169 { 170 addElementToRegistry(element); 171 return(this); 172 } 173 174 178 public meta addElement(String element) 179 { 180 addElementToRegistry(element); 181 return(this); 182 } 183 187 public meta removeElement(String hashcode) 188 { 189 removeElementFromRegistry(hashcode); 190 return(this); 191 } 192 } 193 | Popular Tags |