PageRenderTime 35ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/src/com/codeborne/security/digidoc/Error.java

http://github.com/codeborne/mobileid
Java | 189 lines | 117 code | 26 blank | 46 comment | 19 complexity | 04004fc6c65f86423f773b8b4ca56042 MD5 | raw file
  1. /**
  2. * Error.java
  3. *
  4. * This file was auto-generated from WSDL
  5. * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
  6. */
  7. package com.codeborne.security.digidoc;
  8. public class Error implements java.io.Serializable {
  9. private int code;
  10. private java.lang.String category;
  11. private java.lang.String description;
  12. public Error() {
  13. }
  14. public Error(
  15. int code,
  16. java.lang.String category,
  17. java.lang.String description) {
  18. this.code = code;
  19. this.category = category;
  20. this.description = description;
  21. }
  22. /**
  23. * Gets the code value for this Error.
  24. *
  25. * @return code
  26. */
  27. public int getCode() {
  28. return code;
  29. }
  30. /**
  31. * Sets the code value for this Error.
  32. *
  33. * @param code
  34. */
  35. public void setCode(int code) {
  36. this.code = code;
  37. }
  38. /**
  39. * Gets the category value for this Error.
  40. *
  41. * @return category
  42. */
  43. public java.lang.String getCategory() {
  44. return category;
  45. }
  46. /**
  47. * Sets the category value for this Error.
  48. *
  49. * @param category
  50. */
  51. public void setCategory(java.lang.String category) {
  52. this.category = category;
  53. }
  54. /**
  55. * Gets the description value for this Error.
  56. *
  57. * @return description
  58. */
  59. public java.lang.String getDescription() {
  60. return description;
  61. }
  62. /**
  63. * Sets the description value for this Error.
  64. *
  65. * @param description
  66. */
  67. public void setDescription(java.lang.String description) {
  68. this.description = description;
  69. }
  70. private java.lang.Object __equalsCalc = null;
  71. public synchronized boolean equals(java.lang.Object obj) {
  72. if (!(obj instanceof Error)) return false;
  73. Error other = (Error) obj;
  74. if (obj == null) return false;
  75. if (this == obj) return true;
  76. if (__equalsCalc != null) {
  77. return (__equalsCalc == obj);
  78. }
  79. __equalsCalc = obj;
  80. boolean _equals;
  81. _equals = true &&
  82. this.code == other.getCode() &&
  83. ((this.category==null && other.getCategory()==null) ||
  84. (this.category!=null &&
  85. this.category.equals(other.getCategory()))) &&
  86. ((this.description==null && other.getDescription()==null) ||
  87. (this.description!=null &&
  88. this.description.equals(other.getDescription())));
  89. __equalsCalc = null;
  90. return _equals;
  91. }
  92. private boolean __hashCodeCalc = false;
  93. public synchronized int hashCode() {
  94. if (__hashCodeCalc) {
  95. return 0;
  96. }
  97. __hashCodeCalc = true;
  98. int _hashCode = 1;
  99. _hashCode += getCode();
  100. if (getCategory() != null) {
  101. _hashCode += getCategory().hashCode();
  102. }
  103. if (getDescription() != null) {
  104. _hashCode += getDescription().hashCode();
  105. }
  106. __hashCodeCalc = false;
  107. return _hashCode;
  108. }
  109. // Type metadata
  110. private static org.apache.axis.description.TypeDesc typeDesc =
  111. new org.apache.axis.description.TypeDesc(Error.class, true);
  112. static {
  113. typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.sk.ee/DigiDocService/DigiDocService_2_3.wsdl", "Error"));
  114. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  115. elemField.setFieldName("code");
  116. elemField.setXmlName(new javax.xml.namespace.QName("", "Code"));
  117. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
  118. elemField.setNillable(false);
  119. typeDesc.addFieldDesc(elemField);
  120. elemField = new org.apache.axis.description.ElementDesc();
  121. elemField.setFieldName("category");
  122. elemField.setXmlName(new javax.xml.namespace.QName("", "Category"));
  123. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  124. elemField.setMinOccurs(0);
  125. elemField.setNillable(true);
  126. typeDesc.addFieldDesc(elemField);
  127. elemField = new org.apache.axis.description.ElementDesc();
  128. elemField.setFieldName("description");
  129. elemField.setXmlName(new javax.xml.namespace.QName("", "Description"));
  130. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  131. elemField.setMinOccurs(0);
  132. elemField.setNillable(true);
  133. typeDesc.addFieldDesc(elemField);
  134. }
  135. /**
  136. * Return type metadata object
  137. */
  138. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  139. return typeDesc;
  140. }
  141. /**
  142. * Get Custom Serializer
  143. */
  144. public static org.apache.axis.encoding.Serializer getSerializer(
  145. java.lang.String mechType,
  146. java.lang.Class _javaType,
  147. javax.xml.namespace.QName _xmlType) {
  148. return
  149. new org.apache.axis.encoding.ser.BeanSerializer(
  150. _javaType, _xmlType, typeDesc);
  151. }
  152. /**
  153. * Get Custom Deserializer
  154. */
  155. public static org.apache.axis.encoding.Deserializer getDeserializer(
  156. java.lang.String mechType,
  157. java.lang.Class _javaType,
  158. javax.xml.namespace.QName _xmlType) {
  159. return
  160. new org.apache.axis.encoding.ser.BeanDeserializer(
  161. _javaType, _xmlType, typeDesc);
  162. }
  163. }