1 39 40 package com.sun.enterprise.tools.common.dd.webservice; 41 42 import org.w3c.dom.*; 43 import org.netbeans.modules.schema2beans.*; 44 import java.beans.*; 45 import java.util.*; 46 47 49 public class MessageDestinationRefType extends org.netbeans.modules.schema2beans.BaseBean 50 { 51 52 static Vector comparators = new Vector(); 53 54 static public final String DESCRIPTION = "Description"; static public final String MESSAGE_DESTINATION_REF_NAME = "MessageDestinationRefName"; static public final String MESSAGE_DESTINATION_TYPE = "MessageDestinationType"; static public final String MESSAGE_DESTINATION_USAGE = "MessageDestinationUsage"; static public final String MESSAGE_DESTINATION_LINK = "MessageDestinationLink"; 60 public MessageDestinationRefType() { 61 this(Common.USE_DEFAULT_VALUES); 62 } 63 64 public MessageDestinationRefType(int options) 65 { 66 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 67 this.createProperty("description", DESCRIPTION, 70 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 71 java.lang.String .class); 72 this.createAttribute(DESCRIPTION, "id", "Id", 73 AttrProp.CDATA | AttrProp.IMPLIED, 74 null, null); 75 this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang", 76 AttrProp.CDATA | AttrProp.IMPLIED, 77 null, null); 78 this.createProperty("message-destination-ref-name", MESSAGE_DESTINATION_REF_NAME, 80 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 81 java.lang.String .class); 82 this.createProperty("message-destination-type", MESSAGE_DESTINATION_TYPE, 84 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 85 java.lang.String .class); 86 this.createProperty("message-destination-usage", MESSAGE_DESTINATION_USAGE, 88 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 89 java.lang.String .class); 90 this.createProperty("message-destination-link", MESSAGE_DESTINATION_LINK, 92 Common.TYPE_0_1 | Common.TYPE_STRING | Common.TYPE_KEY, 93 java.lang.String .class); 94 this.initialize(options); 95 } 96 97 void initialize(int options) 99 { 100 101 } 102 103 public void setDescription(int index, java.lang.String value) { 105 this.setValue(DESCRIPTION, index, value); 106 } 107 108 public java.lang.String getDescription(int index) { 110 return (java.lang.String )this.getValue(DESCRIPTION, index); 111 } 112 113 public void setDescription(java.lang.String [] value) { 115 this.setValue(DESCRIPTION, value); 116 } 117 118 public java.lang.String [] getDescription() { 120 return (java.lang.String [])this.getValues(DESCRIPTION); 121 } 122 123 public int sizeDescription() { 125 return this.size(DESCRIPTION); 126 } 127 128 public int addDescription(java.lang.String value) { 130 return this.addValue(DESCRIPTION, value); 131 } 132 133 public int removeDescription(java.lang.String value) { 138 return this.removeValue(DESCRIPTION, value); 139 } 140 141 public void setMessageDestinationRefName(java.lang.String value) { 143 this.setValue(MESSAGE_DESTINATION_REF_NAME, value); 144 } 145 146 public java.lang.String getMessageDestinationRefName() { 148 return (java.lang.String )this.getValue(MESSAGE_DESTINATION_REF_NAME); 149 } 150 151 public void setMessageDestinationType(java.lang.String value) { 153 this.setValue(MESSAGE_DESTINATION_TYPE, value); 154 } 155 156 public java.lang.String getMessageDestinationType() { 158 return (java.lang.String )this.getValue(MESSAGE_DESTINATION_TYPE); 159 } 160 161 public void setMessageDestinationUsage(java.lang.String value) { 163 this.setValue(MESSAGE_DESTINATION_USAGE, value); 164 } 165 166 public java.lang.String getMessageDestinationUsage() { 168 return (java.lang.String )this.getValue(MESSAGE_DESTINATION_USAGE); 169 } 170 171 public void setMessageDestinationLink(java.lang.String value) { 173 this.setValue(MESSAGE_DESTINATION_LINK, value); 174 } 175 176 public java.lang.String getMessageDestinationLink() { 178 return (java.lang.String )this.getValue(MESSAGE_DESTINATION_LINK); 179 } 180 181 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 183 comparators.add(c); 184 } 185 186 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 188 comparators.remove(c); 189 } 190 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 191 } 192 193 public void dump(StringBuffer str, String indent){ 195 String s; 196 Object o; 197 org.netbeans.modules.schema2beans.BaseBean n; 198 str.append(indent); 199 str.append("Description["+this.sizeDescription()+"]"); for(int i=0; i<this.sizeDescription(); i++) 201 { 202 str.append(indent+"\t"); 203 str.append("#"+i+":"); 204 str.append(indent+"\t"); str.append("<"); s = this.getDescription(i); 207 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(DESCRIPTION, i, str, indent); 210 } 211 212 str.append(indent); 213 str.append("MessageDestinationRefName"); str.append(indent+"\t"); str.append("<"); s = this.getMessageDestinationRefName(); 217 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(MESSAGE_DESTINATION_REF_NAME, 0, str, indent); 220 221 str.append(indent); 222 str.append("MessageDestinationType"); str.append(indent+"\t"); str.append("<"); s = this.getMessageDestinationType(); 226 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(MESSAGE_DESTINATION_TYPE, 0, str, indent); 229 230 str.append(indent); 231 str.append("MessageDestinationUsage"); str.append(indent+"\t"); str.append("<"); s = this.getMessageDestinationUsage(); 235 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(MESSAGE_DESTINATION_USAGE, 0, str, indent); 238 239 str.append(indent); 240 str.append("MessageDestinationLink"); str.append(indent+"\t"); str.append("<"); s = this.getMessageDestinationLink(); 244 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(MESSAGE_DESTINATION_LINK, 0, str, indent); 247 248 } 249 public String dumpBeanNode(){ 250 StringBuffer str = new StringBuffer (); 251 str.append("MessageDestinationRefType\n"); this.dump(str, "\n "); return str.toString(); 254 }} 255 256 258 259 281 | Popular Tags |