1 31 32 package com.sun.enterprise.tools.common.dd.webservice; 33 34 import org.w3c.dom.*; 35 import org.netbeans.modules.schema2beans.*; 36 import java.beans.*; 37 import java.util.*; 38 39 41 public class ResourceEnvRefType extends org.netbeans.modules.schema2beans.BaseBean 42 { 43 44 static Vector comparators = new Vector(); 45 46 static public final String DESCRIPTION = "Description"; static public final String RESOURCE_ENV_REF_NAME = "ResourceEnvRefName"; static public final String RESOURCE_ENV_REF_TYPE = "ResourceEnvRefType"; 50 public ResourceEnvRefType() { 51 this(Common.USE_DEFAULT_VALUES); 52 } 53 54 public ResourceEnvRefType(int options) 55 { 56 super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0)); 57 this.createProperty("description", DESCRIPTION, 60 Common.TYPE_0_N | Common.TYPE_STRING | Common.TYPE_KEY, 61 java.lang.String .class); 62 this.createAttribute(DESCRIPTION, "id", "Id", 63 AttrProp.CDATA | AttrProp.IMPLIED, 64 null, null); 65 this.createAttribute(DESCRIPTION, "xml:lang", "XmlLang", 66 AttrProp.CDATA | AttrProp.IMPLIED, 67 null, null); 68 this.createProperty("resource-env-ref-name", RESOURCE_ENV_REF_NAME, 70 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 71 java.lang.String .class); 72 this.createProperty("resource-env-ref-type", RESOURCE_ENV_REF_TYPE, 74 Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY, 75 java.lang.String .class); 76 this.initialize(options); 77 } 78 79 void initialize(int options) 81 { 82 83 } 84 85 public void setDescription(int index, java.lang.String value) { 87 this.setValue(DESCRIPTION, index, value); 88 } 89 90 public java.lang.String getDescription(int index) { 92 return (java.lang.String )this.getValue(DESCRIPTION, index); 93 } 94 95 public void setDescription(java.lang.String [] value) { 97 this.setValue(DESCRIPTION, value); 98 } 99 100 public java.lang.String [] getDescription() { 102 return (java.lang.String [])this.getValues(DESCRIPTION); 103 } 104 105 public int sizeDescription() { 107 return this.size(DESCRIPTION); 108 } 109 110 public int addDescription(java.lang.String value) { 112 return this.addValue(DESCRIPTION, value); 113 } 114 115 public int removeDescription(java.lang.String value) { 120 return this.removeValue(DESCRIPTION, value); 121 } 122 123 public void setResourceEnvRefName(java.lang.String value) { 125 this.setValue(RESOURCE_ENV_REF_NAME, value); 126 } 127 128 public java.lang.String getResourceEnvRefName() { 130 return (java.lang.String )this.getValue(RESOURCE_ENV_REF_NAME); 131 } 132 133 public void setResourceEnvRefType(java.lang.String value) { 135 this.setValue(RESOURCE_ENV_REF_TYPE, value); 136 } 137 138 public java.lang.String getResourceEnvRefType() { 140 return (java.lang.String )this.getValue(RESOURCE_ENV_REF_TYPE); 141 } 142 143 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 145 comparators.add(c); 146 } 147 148 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 150 comparators.remove(c); 151 } 152 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 153 } 154 155 public void dump(StringBuffer str, String indent){ 157 String s; 158 Object o; 159 org.netbeans.modules.schema2beans.BaseBean n; 160 str.append(indent); 161 str.append("Description["+this.sizeDescription()+"]"); for(int i=0; i<this.sizeDescription(); i++) 163 { 164 str.append(indent+"\t"); 165 str.append("#"+i+":"); 166 str.append(indent+"\t"); str.append("<"); s = this.getDescription(i); 169 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(DESCRIPTION, i, str, indent); 172 } 173 174 str.append(indent); 175 str.append("ResourceEnvRefName"); str.append(indent+"\t"); str.append("<"); s = this.getResourceEnvRefName(); 179 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(RESOURCE_ENV_REF_NAME, 0, str, indent); 182 183 str.append(indent); 184 str.append("ResourceEnvRefType"); str.append(indent+"\t"); str.append("<"); s = this.getResourceEnvRefType(); 188 str.append((s==null?"null":s.trim())); str.append(">\n"); this.dumpAttributes(RESOURCE_ENV_REF_TYPE, 0, str, indent); 191 192 } 193 public String dumpBeanNode(){ 194 StringBuffer str = new StringBuffer (); 195 str.append("ResourceEnvRefType\n"); this.dump(str, "\n "); return str.toString(); 198 }} 199 200 202 203 225 | Popular Tags |