1 55 56 package org.jboss.axis.types; 57 58 63 public class Schema 64 { 65 private org.jboss.axis.message.SOAPElementAxisImpl[] _any; 66 private org.jboss.axis.types.URI targetNamespace; private org.jboss.axis.types.NormalizedString version; private org.jboss.axis.types.Id id; 70 public Schema() 71 { 72 } 73 74 public org.jboss.axis.message.SOAPElementAxisImpl[] get_any() 75 { 76 return _any; 77 } 78 79 public void set_any(org.jboss.axis.message.SOAPElementAxisImpl[] _any) 80 { 81 this._any = _any; 82 } 83 84 public org.jboss.axis.types.URI getTargetNamespace() 85 { 86 return targetNamespace; 87 } 88 89 public void setTargetNamespace(org.jboss.axis.types.URI targetNamespace) 90 { 91 this.targetNamespace = targetNamespace; 92 } 93 94 public org.jboss.axis.types.NormalizedString getVersion() 95 { 96 return version; 97 } 98 99 public void setVersion(org.jboss.axis.types.NormalizedString version) 100 { 101 this.version = version; 102 } 103 104 public org.jboss.axis.types.Id getId() 105 { 106 return id; 107 } 108 109 public void setId(org.jboss.axis.types.Id id) 110 { 111 this.id = id; 112 } 113 114 private java.lang.Object __equalsCalc = null; 115 116 public synchronized boolean equals(java.lang.Object obj) 117 { 118 if (!(obj instanceof Schema)) return false; 119 Schema other = (Schema)obj; 120 if (obj == null) return false; 121 if (this == obj) return true; 122 if (__equalsCalc != null) 123 { 124 return (__equalsCalc == obj); 125 } 126 __equalsCalc = obj; 127 boolean _equals; 128 _equals = true && 129 ((_any == null && other.get_any() == null) || 130 (_any != null && 131 java.util.Arrays.equals(_any, other.get_any()))) && 132 ((targetNamespace == null && other.getTargetNamespace() == null) || 133 (targetNamespace != null && 134 targetNamespace.equals(other.getTargetNamespace()))) && 135 ((version == null && other.getVersion() == null) || 136 (version != null && 137 version.equals(other.getVersion()))) && 138 ((id == null && other.getId() == null) || 139 (id != null && 140 id.equals(other.getId()))); 141 __equalsCalc = null; 142 return _equals; 143 } 144 145 private boolean __hashCodeCalc = false; 146 147 public synchronized int hashCode() 148 { 149 if (__hashCodeCalc) 150 { 151 return 0; 152 } 153 __hashCodeCalc = true; 154 int _hashCode = 1; 155 if (get_any() != null) 156 { 157 for (int i = 0; 158 i < java.lang.reflect.Array.getLength(get_any()); 159 i++) 160 { 161 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i); 162 if (obj != null && 163 !obj.getClass().isArray()) 164 { 165 _hashCode += obj.hashCode(); 166 } 167 } 168 } 169 if (getTargetNamespace() != null) 170 { 171 _hashCode += getTargetNamespace().hashCode(); 172 } 173 if (getVersion() != null) 174 { 175 _hashCode += getVersion().hashCode(); 176 } 177 if (getId() != null) 178 { 179 _hashCode += getId().hashCode(); 180 } 181 __hashCodeCalc = false; 182 return _hashCode; 183 } 184 185 private static org.jboss.axis.description.TypeDesc typeDesc = 187 new org.jboss.axis.description.TypeDesc(Schema.class); 188 189 static 190 { 191 org.jboss.axis.description.FieldDesc field = new org.jboss.axis.description.AttributeDesc(); 192 field.setFieldName("targetNamespace"); 193 field.setXmlName(new javax.xml.namespace.QName ("", "targetNamespace")); 194 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "anyURI")); 195 typeDesc.addFieldDesc(field); 196 field = new org.jboss.axis.description.AttributeDesc(); 197 field.setFieldName("version"); 198 field.setXmlName(new javax.xml.namespace.QName ("", "version")); 199 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "normalizedString")); 200 typeDesc.addFieldDesc(field); 201 field = new org.jboss.axis.description.AttributeDesc(); 202 field.setFieldName("id"); 203 field.setXmlName(new javax.xml.namespace.QName ("", "id")); 204 field.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "ID")); 205 typeDesc.addFieldDesc(field); 206 } 207 208 211 public static org.jboss.axis.description.TypeDesc getTypeDesc() 212 { 213 return typeDesc; 214 } 215 216 219 public static org.jboss.axis.encoding.Serializer getSerializer(java.lang.String mechType, 220 java.lang.Class _javaType, 221 javax.xml.namespace.QName _xmlType) 222 { 223 return 224 new org.jboss.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc); 225 } 226 227 230 public static org.jboss.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, 231 java.lang.Class _javaType, 232 javax.xml.namespace.QName _xmlType) 233 { 234 return 235 new org.jboss.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc); 236 } 237 } 238 | Popular Tags |