1 7 8 package org.alfresco.example.webservice.authoring; 9 10 public class LockStatus implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference node; 12 private org.alfresco.example.webservice.authoring.LockTypeEnum lockType; 13 private org.alfresco.example.webservice.types.Reference lockOwner; 14 15 public LockStatus() { 16 } 17 18 public LockStatus( 19 org.alfresco.example.webservice.types.Reference node, 20 org.alfresco.example.webservice.authoring.LockTypeEnum lockType, 21 org.alfresco.example.webservice.types.Reference lockOwner) { 22 this.node = node; 23 this.lockType = lockType; 24 this.lockOwner = lockOwner; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.Reference getNode() { 34 return node; 35 } 36 37 38 43 public void setNode(org.alfresco.example.webservice.types.Reference node) { 44 this.node = node; 45 } 46 47 48 53 public org.alfresco.example.webservice.authoring.LockTypeEnum getLockType() { 54 return lockType; 55 } 56 57 58 63 public void setLockType(org.alfresco.example.webservice.authoring.LockTypeEnum lockType) { 64 this.lockType = lockType; 65 } 66 67 68 73 public org.alfresco.example.webservice.types.Reference getLockOwner() { 74 return lockOwner; 75 } 76 77 78 83 public void setLockOwner(org.alfresco.example.webservice.types.Reference lockOwner) { 84 this.lockOwner = lockOwner; 85 } 86 87 private java.lang.Object __equalsCalc = null; 88 public synchronized boolean equals(java.lang.Object obj) { 89 if (!(obj instanceof LockStatus)) return false; 90 LockStatus other = (LockStatus) 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.node==null && other.getNode()==null) || 100 (this.node!=null && 101 this.node.equals(other.getNode()))) && 102 ((this.lockType==null && other.getLockType()==null) || 103 (this.lockType!=null && 104 this.lockType.equals(other.getLockType()))) && 105 ((this.lockOwner==null && other.getLockOwner()==null) || 106 (this.lockOwner!=null && 107 this.lockOwner.equals(other.getLockOwner()))); 108 __equalsCalc = null; 109 return _equals; 110 } 111 112 private boolean __hashCodeCalc = false; 113 public synchronized int hashCode() { 114 if (__hashCodeCalc) { 115 return 0; 116 } 117 __hashCodeCalc = true; 118 int _hashCode = 1; 119 if (getNode() != null) { 120 _hashCode += getNode().hashCode(); 121 } 122 if (getLockType() != null) { 123 _hashCode += getLockType().hashCode(); 124 } 125 if (getLockOwner() != null) { 126 _hashCode += getLockOwner().hashCode(); 127 } 128 __hashCodeCalc = false; 129 return _hashCode; 130 } 131 132 private static org.apache.axis.description.TypeDesc typeDesc = 134 new org.apache.axis.description.TypeDesc(LockStatus.class, true); 135 136 static { 137 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "LockStatus")); 138 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 139 elemField.setFieldName("node"); 140 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "node")); 141 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 142 elemField.setNillable(false); 143 typeDesc.addFieldDesc(elemField); 144 elemField = new org.apache.axis.description.ElementDesc(); 145 elemField.setFieldName("lockType"); 146 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "lockType")); 147 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "LockTypeEnum")); 148 elemField.setNillable(false); 149 typeDesc.addFieldDesc(elemField); 150 elemField = new org.apache.axis.description.ElementDesc(); 151 elemField.setFieldName("lockOwner"); 152 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/authoring/1.0", "lockOwner")); 153 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 154 elemField.setNillable(false); 155 typeDesc.addFieldDesc(elemField); 156 } 157 158 161 public static org.apache.axis.description.TypeDesc getTypeDesc() { 162 return typeDesc; 163 } 164 165 168 public static org.apache.axis.encoding.Serializer getSerializer( 169 java.lang.String mechType, 170 java.lang.Class _javaType, 171 javax.xml.namespace.QName _xmlType) { 172 return 173 new org.apache.axis.encoding.ser.BeanSerializer( 174 _javaType, _xmlType, typeDesc); 175 } 176 177 180 public static org.apache.axis.encoding.Deserializer getDeserializer( 181 java.lang.String mechType, 182 java.lang.Class _javaType, 183 javax.xml.namespace.QName _xmlType) { 184 return 185 new org.apache.axis.encoding.ser.BeanDeserializer( 186 _javaType, _xmlType, typeDesc); 187 } 188 189 } 190 | Popular Tags |