1 17 18 package com.sun.enterprise.tools.common.dd.webservice; 19 20 import org.w3c.dom.*; 21 import org.netbeans.modules.schema2beans.*; 22 import java.beans.*; 23 import java.util.*; 24 25 27 public class PortComponentHandlerType extends org.netbeans.modules.schema2beans.BaseBean 28 { 29 30 static Vector comparators = new Vector(); 31 32 static public final String DESCRIPTION = "Description"; static public final String DISPLAY_NAME = "DisplayName"; static public final String ICON = "Icon"; static public final String HANDLER_NAME = "HandlerName"; static public final String HANDLER_CLASS = "HandlerClass"; static public final String INIT_PARAM = "InitParam"; static public final String SOAP_HEADER = "SoapHeader"; static public final String SOAP_ROLE = "SoapRole"; 41 public PortComponentHandlerType() { 42 this(Common.USE_DEFAULT_VALUES); 43 } 44 45 public PortComponentHandlerType(int options) 46 { 47 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 48 this.createProperty("description", DESCRIPTION, 51 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 52 java.lang.String .class); 53 this.createAttribute(DESCRIPTION, "id", "Id", 54 AttrProp.CDATA | AttrProp.IMPLIED, 55 null, null); 56 this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang", 57 AttrProp.CDATA | AttrProp.IMPLIED, 58 null, null); 59 this.createProperty("display-name", DISPLAY_NAME, 61 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 62 java.lang.String .class); 63 this.createAttribute(DISPLAY_NAME, "id", "Id", 64 AttrProp.CDATA | AttrProp.IMPLIED, 65 null, null); 66 this.createAttribute(DISPLAY_NAME, "xml:lang", "XmlLang", 67 AttrProp.CDATA | AttrProp.IMPLIED, 68 null, null); 69 this.createProperty("icon", ICON, 71 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 72 IconType.class); 73 this.createAttribute(ICON, "xml:lang", "XmlLang", 74 AttrProp.CDATA | AttrProp.IMPLIED, 75 null, null); 76 this.createAttribute(ICON, "id", "Id", 77 AttrProp.CDATA | AttrProp.IMPLIED, 78 null, null); 79 this.createProperty("handler-name", HANDLER_NAME, 81 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 82 java.lang.String .class); 83 this.createAttribute(HANDLER_NAME, "id", "Id", 84 AttrProp.CDATA | AttrProp.IMPLIED, 85 null, null); 86 this.createProperty("handler-class", HANDLER_CLASS, 88 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 89 java.lang.String .class); 90 this.createProperty("init-param", INIT_PARAM, 92 Common.TYPE_0_N | Common.TYPE_BEAN | Common.TYPE_KEY, 93 ParamValueType.class); 94 this.createAttribute(INIT_PARAM, "id", "Id", 95 AttrProp.CDATA | AttrProp.IMPLIED, 96 null, null); 97 this.createProperty("soap-header", SOAP_HEADER, 99 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 100 javax.xml.namespace.QName .class); 101 this.createAttribute(SOAP_HEADER, "id", "Id", 102 AttrProp.CDATA | AttrProp.IMPLIED, 103 null, null); 104 this.createProperty("soap-role", SOAP_ROLE, 106 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 107 java.lang.String .class); 108 this.createAttribute(SOAP_ROLE, "id", "Id", 109 AttrProp.CDATA | AttrProp.IMPLIED, 110 null, null); 111 this.initialize(options); 112 } 113 114 void initialize(int options) 116 { 117 118 } 119 120 public void setDescription(int index, java.lang.String value) { 122 this.setValue(DESCRIPTION, index, value); 123 } 124 125 public java.lang.String getDescription(int index) { 127 return (java.lang.String )this.getValue(DESCRIPTION, index); 128 } 129 130 public void setDescription(java.lang.String [] value) { 132 this.setValue(DESCRIPTION, value); 133 } 134 135 public java.lang.String [] getDescription() { 137 return (java.lang.String [])this.getValues(DESCRIPTION); 138 } 139 140 public int sizeDescription() { 142 return this.size(DESCRIPTION); 143 } 144 145 public int addDescription(java.lang.String value) { 147 return this.addValue(DESCRIPTION, value); 148 } 149 150 public int removeDescription(java.lang.String value) { 155 return this.removeValue(DESCRIPTION, value); 156 } 157 158 public void setDisplayName(int index, java.lang.String value) { 160 this.setValue(DISPLAY_NAME, index, value); 161 } 162 163 public java.lang.String getDisplayName(int index) { 165 return (java.lang.String )this.getValue(DISPLAY_NAME, index); 166 } 167 168 public void setDisplayName(java.lang.String [] value) { 170 this.setValue(DISPLAY_NAME, value); 171 } 172 173 public java.lang.String [] getDisplayName() { 175 return (java.lang.String [])this.getValues(DISPLAY_NAME); 176 } 177 178 public int sizeDisplayName() { 180 return this.size(DISPLAY_NAME); 181 } 182 183 public int addDisplayName(java.lang.String value) { 185 return this.addValue(DISPLAY_NAME, value); 186 } 187 188 public int removeDisplayName(java.lang.String value) { 193 return this.removeValue(DISPLAY_NAME, value); 194 } 195 196 public void setIcon(int index, IconType value) { 198 this.setValue(ICON, index, value); 199 } 200 201 public IconType getIcon(int index) { 203 return (IconType)this.getValue(ICON, index); 204 } 205 206 public void setIcon(IconType[] value) { 208 this.setValue(ICON, value); 209 } 210 211 public IconType[] getIcon() { 213 return (IconType[])this.getValues(ICON); 214 } 215 216 public int sizeIcon() { 218 return this.size(ICON); 219 } 220 221 public int addIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) { 223 return this.addValue(ICON, value); 224 } 225 226 public int removeIcon(com.sun.enterprise.tools.common.dd.webservice.IconType value) { 231 return this.removeValue(ICON, value); 232 } 233 234 public void setHandlerName(java.lang.String value) { 236 this.setValue(HANDLER_NAME, value); 237 } 238 239 public java.lang.String getHandlerName() { 241 return (java.lang.String )this.getValue(HANDLER_NAME); 242 } 243 244 public void setHandlerClass(java.lang.String value) { 246 this.setValue(HANDLER_CLASS, value); 247 } 248 249 public java.lang.String getHandlerClass() { 251 return (java.lang.String )this.getValue(HANDLER_CLASS); 252 } 253 254 public void setInitParam(int index, ParamValueType value) { 256 this.setValue(INIT_PARAM, index, value); 257 } 258 259 public ParamValueType getInitParam(int index) { 261 return (ParamValueType)this.getValue(INIT_PARAM, index); 262 } 263 264 public void setInitParam(ParamValueType[] value) { 266 this.setValue(INIT_PARAM, value); 267 } 268 269 public ParamValueType[] getInitParam() { 271 return (ParamValueType[])this.getValues(INIT_PARAM); 272 } 273 274 public int sizeInitParam() { 276 return this.size(INIT_PARAM); 277 } 278 279 public int addInitParam(com.sun.enterprise.tools.common.dd.webservice.ParamValueType value) { 281 return this.addValue(INIT_PARAM, value); 282 } 283 284 public int removeInitParam(com.sun.enterprise.tools.common.dd.webservice.ParamValueType value) { 289 return this.removeValue(INIT_PARAM, value); 290 } 291 292 public void setSoapHeader(int index, javax.xml.namespace.QName value) { 294 this.setValue(SOAP_HEADER, index, value); 295 } 296 297 public javax.xml.namespace.QName getSoapHeader(int index) { 299 return (javax.xml.namespace.QName )this.getValue(SOAP_HEADER, index); 300 } 301 302 public void setSoapHeader(javax.xml.namespace.QName [] value) { 304 this.setValue(SOAP_HEADER, value); 305 } 306 307 public javax.xml.namespace.QName [] getSoapHeader() { 309 return (javax.xml.namespace.QName [])this.getValues(SOAP_HEADER); 310 } 311 312 public int sizeSoapHeader() { 314 return this.size(SOAP_HEADER); 315 } 316 317 public int addSoapHeader(javax.xml.namespace.QName value) { 319 return this.addValue(SOAP_HEADER, value); 320 } 321 322 public int removeSoapHeader(javax.xml.namespace.QName value) { 327 return this.removeValue(SOAP_HEADER, value); 328 } 329 330 public void setSoapRole(int index, java.lang.String value) { 332 this.setValue(SOAP_ROLE, index, value); 333 } 334 335 public java.lang.String getSoapRole(int index) { 337 return (java.lang.String )this.getValue(SOAP_ROLE, index); 338 } 339 340 public void setSoapRole(java.lang.String [] value) { 342 this.setValue(SOAP_ROLE, value); 343 } 344 345 public java.lang.String [] getSoapRole() { 347 return (java.lang.String [])this.getValues(SOAP_ROLE); 348 } 349 350 public int sizeSoapRole() { 352 return this.size(SOAP_ROLE); 353 } 354 355 public int addSoapRole(java.lang.String value) { 357 return this.addValue(SOAP_ROLE, value); 358 } 359 360 public int removeSoapRole(java.lang.String value) { 365 return this.removeValue(SOAP_ROLE, value); 366 } 367 368 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 370 comparators.add(c); 371 } 372 373 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 375 comparators.remove(c); 376 } 377 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 378 } 379 380 public void dump(StringBuffer str, String indent){ 382 String s; 383 Object o; 384 org.netbeans.modules.schema2beans.BaseBean n; 385 str.append(indent); 386 str.append("Description["+this.sizeDescription()+"]"); for(int i=0; i<this.sizeDescription(); i++) 388 { 389 str.append(indent+"\t"); 390 str.append("#"+i+":"); 391 str.append(indent+"\t"); str.append("<"); s = this.getDescription(i); 394 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(DESCRIPTION, i, str, indent); 397 } 398 399 str.append(indent); 400 str.append("DisplayName["+this.sizeDisplayName()+"]"); for(int i=0; i<this.sizeDisplayName(); i++) 402 { 403 str.append(indent+"\t"); 404 str.append("#"+i+":"); 405 str.append(indent+"\t"); str.append("<"); s = this.getDisplayName(i); 408 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(DISPLAY_NAME, i, str, indent); 411 } 412 413 str.append(indent); 414 str.append("Icon["+this.sizeIcon()+"]"); for(int i=0; i<this.sizeIcon(); i++) 416 { 417 str.append(indent+"\t"); 418 str.append("#"+i+":"); 419 n = (org.netbeans.modules.schema2beans.BaseBean) this.getIcon(i); 420 if (n != null) 421 n.dump(str, indent + "\t"); else 423 str.append(indent+"\tnull"); this.dumpAttributes(ICON, i, str, indent); 425 } 426 427 str.append(indent); 428 str.append("HandlerName"); str.append(indent+"\t"); str.append("<"); s = this.getHandlerName(); 432 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(HANDLER_NAME, 0, str, indent); 435 436 str.append(indent); 437 str.append("HandlerClass"); str.append(indent+"\t"); str.append("<"); s = this.getHandlerClass(); 441 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(HANDLER_CLASS, 0, str, indent); 444 445 str.append(indent); 446 str.append("InitParam["+this.sizeInitParam()+"]"); for(int i=0; i<this.sizeInitParam(); i++) 448 { 449 str.append(indent+"\t"); 450 str.append("#"+i+":"); 451 n = (org.netbeans.modules.schema2beans.BaseBean) this.getInitParam(i); 452 if (n != null) 453 n.dump(str, indent + "\t"); else 455 str.append(indent+"\tnull"); this.dumpAttributes(INIT_PARAM, i, str, indent); 457 } 458 459 str.append(indent); 460 str.append("SoapHeader["+this.sizeSoapHeader()+"]"); for(int i=0; i<this.sizeSoapHeader(); i++) 462 { 463 str.append(indent+"\t"); 464 str.append("#"+i+":"); 465 str.append(indent+"\t"); str.append("<"); o = this.getSoapHeader(i); 468 str.append((o==null?"null":o.toString().trim())); str.append(">\n"); this.dumpAttributes(SOAP_HEADER, i, str, indent); 471 } 472 473 str.append(indent); 474 str.append("SoapRole["+this.sizeSoapRole()+"]"); for(int i=0; i<this.sizeSoapRole(); i++) 476 { 477 str.append(indent+"\t"); 478 str.append("#"+i+":"); 479 str.append(indent+"\t"); str.append("<"); s = this.getSoapRole(i); 482 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(SOAP_ROLE, i, str, indent); 485 } 486 487 } 488 public String dumpBeanNode(){ 489 StringBuffer str = new StringBuffer (); 490 str.append("PortComponentHandlerType\n"); this.dump(str, "\n "); return str.toString(); 493 }} 494 495 497 498 520 | Popular Tags |