1 58 package org.apache.ecs.xhtml; 59 60 import org.apache.ecs.*; 61 62 70 public class param extends SinglePartElement implements Printable 71 { 72 74 public final static String ref = "ref"; 75 public final static String data = "data"; 76 public final static String object = "object"; 77 78 81 { 82 setElementType("param"); 83 setCase(LOWERCASE); 84 setAttributeQuote(true); 85 setBeginEndModifier('/'); 86 } 87 88 91 public param() 92 { 93 } 94 95 99 public param setName(String name) 100 { 101 addAttribute("name",name); 102 return(this); 103 } 104 105 109 public param setValue(String value) 110 { 111 addAttribute("value",value); 112 return(this); 113 } 114 115 120 public param setValueType(String valuetype) 121 { 122 addAttribute("value",valuetype); 123 return(this); 124 } 125 126 130 public param setType(String cdata) 131 { 132 addAttribute("type",cdata); 133 return(this); 134 } 135 136 140 public Element setLang(String lang) 141 { 142 addAttribute("lang",lang); 143 addAttribute("xml:lang",lang); 144 return this; 145 } 146 147 152 public param addElement(String hashcode,Element element) 153 { 154 addElementToRegistry(hashcode,element); 155 return(this); 156 } 157 158 163 public param addElement(String hashcode,String element) 164 { 165 addElementToRegistry(hashcode,element); 166 return(this); 167 } 168 169 173 public param addElement(Element element) 174 { 175 addElementToRegistry(element); 176 return(this); 177 } 178 179 183 public param addElement(String element) 184 { 185 addElementToRegistry(element); 186 return(this); 187 } 188 192 public param removeElement(String hashcode) 193 { 194 removeElementFromRegistry(hashcode); 195 return(this); 196 } 197 } 198 | Popular Tags |