1 7 8 43 44 package com.bluecubs.xinco.core; 45 46 public class XincoVersion implements java.io.Serializable { 47 private int version_high; 48 private int version_low; 49 private int version_mid; 50 private java.lang.String version_postfix; 51 52 public XincoVersion() { 53 } 54 55 public int getVersion_high() { 56 return version_high; 57 } 58 59 public void setVersion_high(int version_high) { 60 this.version_high = version_high; 61 } 62 63 public int getVersion_low() { 64 return version_low; 65 } 66 67 public void setVersion_low(int version_low) { 68 this.version_low = version_low; 69 } 70 71 public int getVersion_mid() { 72 return version_mid; 73 } 74 75 public void setVersion_mid(int version_mid) { 76 this.version_mid = version_mid; 77 } 78 79 public java.lang.String getVersion_postfix() { 80 return version_postfix; 81 } 82 83 public void setVersion_postfix(java.lang.String version_postfix) { 84 this.version_postfix = version_postfix; 85 } 86 87 private java.lang.Object __equalsCalc = null; 88 public synchronized boolean equals(java.lang.Object obj) { 89 if (!(obj instanceof XincoVersion)) return false; 90 XincoVersion other = (XincoVersion) obj; 91 if (obj == null) return false; 92 if (this == obj) return true; 93 if (__equalsCalc != null) { 94 return (__equalsCalc == obj); 95 } 96 __equalsCalc = obj; 97 boolean _equals; 98 _equals = true && 99 this.version_high == other.getVersion_high() && 100 this.version_low == other.getVersion_low() && 101 this.version_mid == other.getVersion_mid() && 102 ((this.version_postfix==null && other.getVersion_postfix()==null) || 103 (this.version_postfix!=null && 104 this.version_postfix.equals(other.getVersion_postfix()))); 105 __equalsCalc = null; 106 return _equals; 107 } 108 109 private boolean __hashCodeCalc = false; 110 public synchronized int hashCode() { 111 if (__hashCodeCalc) { 112 return 0; 113 } 114 __hashCodeCalc = true; 115 int _hashCode = 1; 116 _hashCode += getVersion_high(); 117 _hashCode += getVersion_low(); 118 _hashCode += getVersion_mid(); 119 if (getVersion_postfix() != null) { 120 _hashCode += getVersion_postfix().hashCode(); 121 } 122 __hashCodeCalc = false; 123 return _hashCode; 124 } 125 126 private static org.apache.axis.description.TypeDesc typeDesc = 128 new org.apache.axis.description.TypeDesc(XincoVersion.class); 129 130 static { 131 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://core.xinco.bluecubs.com", "XincoVersion")); 132 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 133 elemField.setFieldName("version_high"); 134 elemField.setXmlName(new javax.xml.namespace.QName ("", "version_high")); 135 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 136 typeDesc.addFieldDesc(elemField); 137 elemField = new org.apache.axis.description.ElementDesc(); 138 elemField.setFieldName("version_low"); 139 elemField.setXmlName(new javax.xml.namespace.QName ("", "version_low")); 140 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 141 typeDesc.addFieldDesc(elemField); 142 elemField = new org.apache.axis.description.ElementDesc(); 143 elemField.setFieldName("version_mid"); 144 elemField.setXmlName(new javax.xml.namespace.QName ("", "version_mid")); 145 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 146 typeDesc.addFieldDesc(elemField); 147 elemField = new org.apache.axis.description.ElementDesc(); 148 elemField.setFieldName("version_postfix"); 149 elemField.setXmlName(new javax.xml.namespace.QName ("", "version_postfix")); 150 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 151 typeDesc.addFieldDesc(elemField); 152 } 153 154 157 public static org.apache.axis.description.TypeDesc getTypeDesc() { 158 return typeDesc; 159 } 160 161 164 public static org.apache.axis.encoding.Serializer getSerializer( 165 java.lang.String mechType, 166 java.lang.Class _javaType, 167 javax.xml.namespace.QName _xmlType) { 168 return 169 new org.apache.axis.encoding.ser.BeanSerializer( 170 _javaType, _xmlType, typeDesc); 171 } 172 173 176 public static org.apache.axis.encoding.Deserializer getDeserializer( 177 java.lang.String mechType, 178 java.lang.Class _javaType, 179 javax.xml.namespace.QName _xmlType) { 180 return 181 new org.apache.axis.encoding.ser.BeanDeserializer( 182 _javaType, _xmlType, typeDesc); 183 } 184 185 } 186 | Popular Tags |