/** * GW__TraceRoute_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__TraceRoute_Result implements java.io.Serializable { private org.apache.axis.types.UnsignedShort shortAddr; private java.lang.String longAddr; private double delay; private int hopCount; public GW__TraceRoute_Result() { } public GW__TraceRoute_Result( org.apache.axis.types.UnsignedShort shortAddr, java.lang.String longAddr, double delay, int hopCount) { this.shortAddr = shortAddr; this.longAddr = longAddr; this.delay = delay; this.hopCount = hopCount; } /** * Gets the shortAddr value for this GW__TraceRoute_Result. * * @return shortAddr */ public org.apache.axis.types.UnsignedShort getShortAddr() { return shortAddr; } /** * Sets the shortAddr value for this GW__TraceRoute_Result. * * @param shortAddr */ public void setShortAddr(org.apache.axis.types.UnsignedShort shortAddr) { this.shortAddr = shortAddr; } /** * Gets the longAddr value for this GW__TraceRoute_Result. * * @return longAddr */ public java.lang.String getLongAddr() { return longAddr; } /** * Sets the longAddr value for this GW__TraceRoute_Result. * * @param longAddr */ public void setLongAddr(java.lang.String longAddr) { this.longAddr = longAddr; } /** * Gets the delay value for this GW__TraceRoute_Result. * * @return delay */ public double getDelay() { return delay; } /** * Sets the delay value for this GW__TraceRoute_Result. * * @param delay */ public void setDelay(double delay) { this.delay = delay; } /** * Gets the hopCount value for this GW__TraceRoute_Result. * * @return hopCount */ public int getHopCount() { return hopCount; } /** * Sets the hopCount value for this GW__TraceRoute_Result. * * @param hopCount */ public void setHopCount(int hopCount) { this.hopCount = hopCount; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof GW__TraceRoute_Result)) return false; GW__TraceRoute_Result other = (GW__TraceRoute_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.shortAddr==null && other.getShortAddr()==null) || (this.shortAddr!=null && this.shortAddr.equals(other.getShortAddr()))) && ((this.longAddr==null && other.getLongAddr()==null) || (this.longAddr!=null && this.longAddr.equals(other.getLongAddr()))) && this.delay == other.getDelay() && this.hopCount == other.getHopCount(); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getShortAddr() != null) { _hashCode += getShortAddr().hashCode(); } if (getLongAddr() != null) { _hashCode += getLongAddr().hashCode(); } _hashCode += new Double(getDelay()).hashCode(); _hashCode += getHopCount(); __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(GW__TraceRoute_Result.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:gw", "GW__TraceRoute_Result")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("shortAddr"); elemField.setXmlName(new javax.xml.namespace.QName("", "shortAddr")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "unsignedShort")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("longAddr"); elemField.setXmlName(new javax.xml.namespace.QName("", "longAddr")); 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("delay"); elemField.setXmlName(new javax.xml.namespace.QName("", "delay")); 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("hopCount"); elemField.setXmlName(new javax.xml.namespace.QName("", "hopCount")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); 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); } }