1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class head extends MultiPartElement implements Printable 71 { 72 75 { 76 setElementType("head"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 } 80 81 84 public head() 85 { 86 } 87 88 92 public head(String value) 93 { 94 addElement(value); 95 } 96 97 101 public head(Element value) 102 { 103 addElement(value); 104 } 105 106 110 public head setProfile(String profile) 111 { 112 addAttribute("profile",profile); 113 return this; 114 } 115 116 120 public Element setLang(String lang) 121 { 122 addAttribute("lang",lang); 123 addAttribute("xml:lang",lang); 124 return this; 125 } 126 127 132 public head addElement(String hashcode,Element element) 133 { 134 addElementToRegistry(hashcode,element); 135 return(this); 136 } 137 138 143 public head addElement(String hashcode,String element) 144 { 145 addElementToRegistry(hashcode,element); 146 return(this); 147 } 148 149 153 public head addElement(Element element) 154 { 155 addElementToRegistry(element); 156 return(this); 157 } 158 162 public head addElement(String element) 163 { 164 addElementToRegistry(element); 165 return(this); 166 } 167 171 public head removeElement(String hashcode) 172 { 173 removeElementFromRegistry(hashcode); 174 return(this); 175 } 176 } 177 | Popular Tags |