1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class br extends SinglePartElement implements Printable 71 { 72 75 { 76 setElementType("br"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 setBeginEndModifier('/'); 80 } 81 82 86 public br() 87 { 88 } 89 90 96 public br(String clear_type) 97 { 98 setClear(clear_type); 99 } 100 101 108 public br(String clear_type, String title) 109 { 110 setClear(clear_type); 111 setTitle(title); 112 } 113 114 118 public br setClear(String clear_type) 119 { 120 addAttribute("clear",clear_type); 121 return this; 122 } 123 124 128 public Element setLang(String lang) 129 { 130 addAttribute("lang",lang); 131 addAttribute("xml:lang",lang); 132 return this; 133 } 134 135 140 public br addElement(String hashcode,Element element) 141 { 142 addElementToRegistry(hashcode,element); 143 return(this); 144 } 145 146 151 public br addElement(String hashcode,String element) 152 { 153 addElementToRegistry(hashcode,element); 154 return(this); 155 } 156 157 161 public br addElement(Element element) 162 { 163 addElementToRegistry(element); 164 return(this); 165 } 166 170 public br addElement(String element) 171 { 172 addElementToRegistry(element); 173 return(this); 174 } 175 179 public br removeElement(String hashcode) 180 { 181 removeElementFromRegistry(hashcode); 182 return(this); 183 } 184 } 185 | Popular Tags |