PageRenderTime 40ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/src/java/is/banking/ws/common/Error.java

https://github.com/idega/is.banking
Java | 167 lines | 97 code | 22 blank | 48 comment | 16 complexity | 48b7accf163306709cfe69972b3e2b94 MD5 | raw file
Possible License(s): GPL-3.0
  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 is.banking.ws.common;
  8. /**
  9. * An error code and message describing what went wrong during with
  10. * the operation.
  11. */
  12. public class Error implements java.io.Serializable {
  13. /* An error that occured during the operation. Varies between
  14. * banks. */
  15. private java.lang.String code;
  16. /* An error message describing an error that occured during the
  17. * operation. Varies between banks. */
  18. private java.lang.String message;
  19. public Error() {
  20. }
  21. public Error(
  22. java.lang.String code,
  23. java.lang.String message) {
  24. this.code = code;
  25. this.message = message;
  26. }
  27. /**
  28. * Gets the code value for this Error.
  29. *
  30. * @return code * An error that occured during the operation. Varies between
  31. * banks.
  32. */
  33. public java.lang.String getCode() {
  34. return code;
  35. }
  36. /**
  37. * Sets the code value for this Error.
  38. *
  39. * @param code * An error that occured during the operation. Varies between
  40. * banks.
  41. */
  42. public void setCode(java.lang.String code) {
  43. this.code = code;
  44. }
  45. /**
  46. * Gets the message value for this Error.
  47. *
  48. * @return message * An error message describing an error that occured during the
  49. * operation. Varies between banks.
  50. */
  51. public java.lang.String getMessage() {
  52. return message;
  53. }
  54. /**
  55. * Sets the message value for this Error.
  56. *
  57. * @param message * An error message describing an error that occured during the
  58. * operation. Varies between banks.
  59. */
  60. public void setMessage(java.lang.String message) {
  61. this.message = message;
  62. }
  63. private java.lang.Object __equalsCalc = null;
  64. public synchronized boolean equals(java.lang.Object obj) {
  65. if (!(obj instanceof Error)) return false;
  66. Error other = (Error) obj;
  67. if (this == obj) return true;
  68. if (__equalsCalc != null) {
  69. return (__equalsCalc == obj);
  70. }
  71. __equalsCalc = obj;
  72. boolean _equals;
  73. _equals = true &&
  74. ((this.code==null && other.getCode()==null) ||
  75. (this.code!=null &&
  76. this.code.equals(other.getCode()))) &&
  77. ((this.message==null && other.getMessage()==null) ||
  78. (this.message!=null &&
  79. this.message.equals(other.getMessage())));
  80. __equalsCalc = null;
  81. return _equals;
  82. }
  83. private boolean __hashCodeCalc = false;
  84. public synchronized int hashCode() {
  85. if (__hashCodeCalc) {
  86. return 0;
  87. }
  88. __hashCodeCalc = true;
  89. int _hashCode = 1;
  90. if (getCode() != null) {
  91. _hashCode += getCode().hashCode();
  92. }
  93. if (getMessage() != null) {
  94. _hashCode += getMessage().hashCode();
  95. }
  96. __hashCodeCalc = false;
  97. return _hashCode;
  98. }
  99. // Type metadata
  100. private static org.apache.axis.description.TypeDesc typeDesc =
  101. new org.apache.axis.description.TypeDesc(Error.class, true);
  102. static {
  103. typeDesc.setXmlType(new javax.xml.namespace.QName("http://IcelandicOnlineBanking/2005/12/01/CommonTypes", "Error"));
  104. org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  105. elemField.setFieldName("code");
  106. elemField.setXmlName(new javax.xml.namespace.QName("http://IcelandicOnlineBanking/2005/12/01/CommonTypes", "Code"));
  107. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  108. elemField.setNillable(false);
  109. typeDesc.addFieldDesc(elemField);
  110. elemField = new org.apache.axis.description.ElementDesc();
  111. elemField.setFieldName("message");
  112. elemField.setXmlName(new javax.xml.namespace.QName("http://IcelandicOnlineBanking/2005/12/01/CommonTypes", "Message"));
  113. elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  114. elemField.setNillable(false);
  115. typeDesc.addFieldDesc(elemField);
  116. }
  117. /**
  118. * Return type metadata object
  119. */
  120. public static org.apache.axis.description.TypeDesc getTypeDesc() {
  121. return typeDesc;
  122. }
  123. /**
  124. * Get Custom Serializer
  125. */
  126. public static org.apache.axis.encoding.Serializer getSerializer(
  127. java.lang.String mechType,
  128. java.lang.Class _javaType,
  129. javax.xml.namespace.QName _xmlType) {
  130. return
  131. new org.apache.axis.encoding.ser.BeanSerializer(
  132. _javaType, _xmlType, typeDesc);
  133. }
  134. /**
  135. * Get Custom Deserializer
  136. */
  137. public static org.apache.axis.encoding.Deserializer getDeserializer(
  138. java.lang.String mechType,
  139. java.lang.Class _javaType,
  140. javax.xml.namespace.QName _xmlType) {
  141. return
  142. new org.apache.axis.encoding.ser.BeanDeserializer(
  143. _javaType, _xmlType, typeDesc);
  144. }
  145. }