1 7 8 package org.alfresco.repo.webservice.repository; 9 10 public class RepositoryFault extends org.apache.axis.AxisFault implements java.io.Serializable { 11 private int errorCode; 12 13 private java.lang.String message1; 14 15 public RepositoryFault() { 16 } 17 18 public RepositoryFault( 19 int errorCode, 20 java.lang.String message1) { 21 this.errorCode = errorCode; 22 this.message1 = message1; 23 } 24 25 26 31 public int getErrorCode() { 32 return errorCode; 33 } 34 35 36 41 public void setErrorCode(int errorCode) { 42 this.errorCode = errorCode; 43 } 44 45 46 51 public java.lang.String getMessage1() { 52 return message1; 53 } 54 55 56 61 public void setMessage1(java.lang.String message1) { 62 this.message1 = message1; 63 } 64 65 private java.lang.Object __equalsCalc = null; 66 public synchronized boolean equals(java.lang.Object obj) { 67 if (!(obj instanceof RepositoryFault)) return false; 68 RepositoryFault other = (RepositoryFault) obj; 69 if (obj == null) return false; 70 if (this == obj) return true; 71 if (__equalsCalc != null) { 72 return (__equalsCalc == obj); 73 } 74 __equalsCalc = obj; 75 boolean _equals; 76 _equals = true && 77 this.errorCode == other.getErrorCode() && 78 ((this.message1==null && other.getMessage1()==null) || 79 (this.message1!=null && 80 this.message1.equals(other.getMessage1()))); 81 __equalsCalc = null; 82 return _equals; 83 } 84 85 private boolean __hashCodeCalc = false; 86 public synchronized int hashCode() { 87 if (__hashCodeCalc) { 88 return 0; 89 } 90 __hashCodeCalc = true; 91 int _hashCode = 1; 92 _hashCode += getErrorCode(); 93 if (getMessage1() != null) { 94 _hashCode += getMessage1().hashCode(); 95 } 96 __hashCodeCalc = false; 97 return _hashCode; 98 } 99 100 private static org.apache.axis.description.TypeDesc typeDesc = 102 new org.apache.axis.description.TypeDesc(RepositoryFault.class, true); 103 104 static { 105 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault")); 106 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 107 elemField.setFieldName("errorCode"); 108 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/repository/1.0", "errorCode")); 109 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "int")); 110 elemField.setNillable(false); 111 typeDesc.addFieldDesc(elemField); 112 elemField = new org.apache.axis.description.ElementDesc(); 113 elemField.setFieldName("message1"); 114 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/repository/1.0", "message")); 115 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 116 elemField.setNillable(false); 117 typeDesc.addFieldDesc(elemField); 118 } 119 120 123 public static org.apache.axis.description.TypeDesc getTypeDesc() { 124 return typeDesc; 125 } 126 127 130 public static org.apache.axis.encoding.Serializer getSerializer( 131 java.lang.String mechType, 132 java.lang.Class _javaType, 133 javax.xml.namespace.QName _xmlType) { 134 return 135 new org.apache.axis.encoding.ser.BeanSerializer( 136 _javaType, _xmlType, typeDesc); 137 } 138 139 142 public static org.apache.axis.encoding.Deserializer getDeserializer( 143 java.lang.String mechType, 144 java.lang.Class _javaType, 145 javax.xml.namespace.QName _xmlType) { 146 return 147 new org.apache.axis.encoding.ser.BeanDeserializer( 148 _javaType, _xmlType, typeDesc); 149 } 150 151 152 155 public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException { 156 context.serialize(qname, null, this); 157 } 158 } 159 | Popular Tags |