1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class base extends SinglePartElement implements Printable 71 { 72 75 { 76 setElementType("base"); 77 setCase(LOWERCASE); 78 setAttributeQuote(true); 79 setBeginEndModifier('/'); 80 } 81 84 public base() 85 { 86 } 87 88 92 public base(String href) 93 { 94 setHref(href); 95 } 96 97 102 public base(String href, String target) 103 { 104 setHref(target); 105 setTarget(target); 106 } 107 108 112 public base setHref(String href) 113 { 114 addAttribute("href",href); 115 return this; 116 } 117 118 122 public base setTarget(String target) 123 { 124 addAttribute("target",target); 125 return this; 126 } 127 128 132 public Element setLang(String lang) 133 { 134 addAttribute("lang",lang); 135 addAttribute("xml:lang",lang); 136 return this; 137 } 138 139 144 public base addElement(String hashcode,Element element) 145 { 146 addElementToRegistry(hashcode,element); 147 return(this); 148 } 149 150 155 public base addElement(String hashcode,String element) 156 { 157 addElementToRegistry(hashcode,element); 158 return(this); 159 } 160 161 165 public base addElement(Element element) 166 { 167 addElementToRegistry(element); 168 return(this); 169 } 170 171 175 public base addElement(String element) 176 { 177 addElementToRegistry(element); 178 return(this); 179 } 180 184 public base removeElement(String hashcode) 185 { 186 removeElementFromRegistry(hashcode); 187 return(this); 188 } 189 } 190 | Popular Tags |