/** * GW__Event_Result.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package gw; public class GW__Event_Result implements java.io.Serializable { private java.lang.String addr; private double timestamp; private org.apache.axis.types.UnsignedInt seqNo; private gw.GW__Event value; public GW__Event_Result() { } public GW__Event_Result( java.lang.String addr, double timestamp, org.apache.axis.types.UnsignedInt seqNo, gw.GW__Event value) { this.addr = addr; this.timestamp = timestamp; this.seqNo = seqNo; this.value = value; } /** * Gets the addr value for this GW__Event_Result. * * @return addr */ public java.lang.String getAddr() { return addr; } /** * Sets the addr value for this GW__Event_Result. * * @param addr */ public void setAddr(java.lang.String addr) { this.addr = addr; } /** * Gets the timestamp value for this GW__Event_Result. * * @return timestamp */ public double getTimestamp() { return timestamp; } /** * Sets the timestamp value for this GW__Event_Result. * * @param timestamp */ public void setTimestamp(double timestamp) { this.timestamp = timestamp; } /** * Gets the seqNo value for this GW__Event_Result. * * @return seqNo */ public org.apache.axis.types.UnsignedInt getSeqNo() { return seqNo; } /** * Sets the seqNo value for this GW__Event_Result. * * @param seqNo */ public void setSeqNo(org.apache.axis.types.UnsignedInt seqNo) { this.seqNo = seqNo; } /** * Gets the value value for this GW__Event_Result. * * @return value */ public gw.GW__Event getValue() { return value; } /** * Sets the value value for this GW__Event_Result. * * @param value */ public void setValue(gw.GW__Event value) { this.value = value; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GW__Event_Result)) return false; GW__Event_Result other = (GW__Event_Result) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.addr==null && other.getAddr()==null) || (this.addr!=null && this.addr.equals(other.getAddr()))) && this.timestamp == other.getTimestamp() && ((this.seqNo==null && other.getSeqNo()==null) || (this.seqNo!=null && this.seqNo.equals(other.getSeqNo()))) && ((this.value==null && other.getValue()==null) || (this.value!=null && this.value.equals(other.getValue()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getAddr() != null) { _hashCode += getAddr().hashCode(); } _hashCode += new Double(getTimestamp()).hashCode(); if (getSeqNo() != null) { _hashCode += getSeqNo().hashCode(); } if (getValue() != null) { _hashCode += getValue().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(GW__Event_Result.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:gw", "GW__Event_Result")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("addr"); elemField.setXmlName(new javax.xml.namespace.QName("", "addr")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("timestamp"); elemField.setXmlName(new javax.xml.namespace.QName("", "timestamp")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("seqNo"); elemField.setXmlName(new javax.xml.namespace.QName("", "seqNo")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedInt")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("value"); elemField.setXmlName(new javax.xml.namespace.QName("", "value")); elemField.setXmlType(new javax.xml.namespace.QName("urn:gw", "GW__Event")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }