1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Param extends SinglePartElement implements Printable 70 { 71 73 public final static String REF = "ref"; 74 public final static String DATA = "data"; 75 public final static String OBJECT = "object"; 76 public final static String ref = "ref"; 77 public final static String data = "data"; 78 public final static String object = "object"; 79 80 83 { 84 setElementType("param"); 85 } 86 87 90 public Param() 91 { 92 } 93 94 98 public Param setName(String name) 99 { 100 addAttribute("name",name); 101 return(this); 102 } 103 104 108 public Param setValue(String value) 109 { 110 addAttribute("value",value); 111 return(this); 112 } 113 114 119 public Param setValueType(String valuetype) 120 { 121 addAttribute("value",valuetype); 122 return(this); 123 } 124 125 129 public Param setType(String cdata) 130 { 131 addAttribute("type",cdata); 132 return(this); 133 } 134 135 140 public Param addElement(String hashcode,Element element) 141 { 142 addElementToRegistry(hashcode,element); 143 return(this); 144 } 145 146 151 public Param addElement(String hashcode,String element) 152 { 153 addElementToRegistry(hashcode,element); 154 return(this); 155 } 156 157 161 public Param addElement(Element element) 162 { 163 addElementToRegistry(element); 164 return(this); 165 } 166 167 171 public Param addElement(String element) 172 { 173 addElementToRegistry(element); 174 return(this); 175 } 176 180 public Param removeElement(String hashcode) 181 { 182 removeElementFromRegistry(hashcode); 183 return(this); 184 } 185 } 186 | Popular Tags |