001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: /**
018: * SOAPStruct.java
019: *
020: * This file was auto-generated from WSDL
021: * by the Apache Axis WSDL2Java emitter.
022: */package org.apache.geronimo.axis.builder.interop.types;
023:
024: public class SOAPStruct implements java.io.Serializable {
025: private java.lang.String varString;
026: private int varInt;
027: private float varFloat;
028:
029: public SOAPStruct() {
030: }
031:
032: public java.lang.String getVarString() {
033: return varString;
034: }
035:
036: public void setVarString(java.lang.String varString) {
037: this .varString = varString;
038: }
039:
040: public int getVarInt() {
041: return varInt;
042: }
043:
044: public void setVarInt(int varInt) {
045: this .varInt = varInt;
046: }
047:
048: public float getVarFloat() {
049: return varFloat;
050: }
051:
052: public void setVarFloat(float varFloat) {
053: this .varFloat = varFloat;
054: }
055:
056: private java.lang.Object __equalsCalc = null;
057:
058: public synchronized boolean equals(java.lang.Object obj) {
059: if (!(obj instanceof SOAPStruct))
060: return false;
061: SOAPStruct other = (SOAPStruct) obj;
062: if (obj == null)
063: return false;
064: if (this == obj)
065: return true;
066: if (__equalsCalc != null) {
067: return (__equalsCalc == obj);
068: }
069: __equalsCalc = obj;
070: boolean _equals;
071: _equals = true
072: && ((this .varString == null && other.getVarString() == null) || (this .varString != null && this .varString
073: .equals(other.getVarString())))
074: && this .varInt == other.getVarInt()
075: && this .varFloat == other.getVarFloat();
076: __equalsCalc = null;
077: return _equals;
078: }
079:
080: private boolean __hashCodeCalc = false;
081:
082: public synchronized int hashCode() {
083: if (__hashCodeCalc) {
084: return 0;
085: }
086: __hashCodeCalc = true;
087: int _hashCode = 1;
088: if (getVarString() != null) {
089: _hashCode += getVarString().hashCode();
090: }
091: _hashCode += getVarInt();
092: _hashCode += new Float(getVarFloat()).hashCode();
093: __hashCodeCalc = false;
094: return _hashCode;
095: }
096:
097: // Type metadata
098: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
099: SOAPStruct.class);
100:
101: static {
102: typeDesc
103: .setXmlType(new javax.xml.namespace.QName(
104: "http://tempuri.org/4s4c/1/3/wsdl/types/",
105: "SOAPStruct"));
106: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
107: elemField.setFieldName("varString");
108: elemField.setXmlName(new javax.xml.namespace.QName("",
109: "varString"));
110: elemField.setXmlType(new javax.xml.namespace.QName(
111: "http://www.w3.org/2001/XMLSchema", "string"));
112: typeDesc.addFieldDesc(elemField);
113: elemField = new org.apache.axis.description.ElementDesc();
114: elemField.setFieldName("varInt");
115: elemField
116: .setXmlName(new javax.xml.namespace.QName("", "varInt"));
117: elemField.setXmlType(new javax.xml.namespace.QName(
118: "http://www.w3.org/2001/XMLSchema", "int"));
119: typeDesc.addFieldDesc(elemField);
120: elemField = new org.apache.axis.description.ElementDesc();
121: elemField.setFieldName("varFloat");
122: elemField.setXmlName(new javax.xml.namespace.QName("",
123: "varFloat"));
124: elemField.setXmlType(new javax.xml.namespace.QName(
125: "http://www.w3.org/2001/XMLSchema", "float"));
126: typeDesc.addFieldDesc(elemField);
127: }
128:
129: /**
130: * Return type metadata object
131: */
132: public static org.apache.axis.description.TypeDesc getTypeDesc() {
133: return typeDesc;
134: }
135:
136: /**
137: * Get Custom Serializer
138: */
139: public static org.apache.axis.encoding.Serializer getSerializer(
140: java.lang.String mechType, java.lang.Class _javaType,
141: javax.xml.namespace.QName _xmlType) {
142: return new org.apache.axis.encoding.ser.BeanSerializer(
143: _javaType, _xmlType, typeDesc);
144: }
145:
146: /**
147: * Get Custom Deserializer
148: */
149: public static org.apache.axis.encoding.Deserializer getDeserializer(
150: java.lang.String mechType, java.lang.Class _javaType,
151: javax.xml.namespace.QName _xmlType) {
152: return new org.apache.axis.encoding.ser.BeanDeserializer(
153: _javaType, _xmlType, typeDesc);
154: }
155:
156: }
|