KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > authoring > LockStatus


1 /**
2  * LockStatus.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.authoring;
9
10 public class LockStatus implements java.io.Serializable JavaDoc {
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     /**
29      * Gets the node value for this LockStatus.
30      *
31      * @return node
32      */

33     public org.alfresco.example.webservice.types.Reference getNode() {
34         return node;
35     }
36
37
38     /**
39      * Sets the node value for this LockStatus.
40      *
41      * @param node
42      */

43     public void setNode(org.alfresco.example.webservice.types.Reference node) {
44         this.node = node;
45     }
46
47
48     /**
49      * Gets the lockType value for this LockStatus.
50      *
51      * @return lockType
52      */

53     public org.alfresco.example.webservice.authoring.LockTypeEnum getLockType() {
54         return lockType;
55     }
56
57
58     /**
59      * Sets the lockType value for this LockStatus.
60      *
61      * @param lockType
62      */

63     public void setLockType(org.alfresco.example.webservice.authoring.LockTypeEnum lockType) {
64         this.lockType = lockType;
65     }
66
67
68     /**
69      * Gets the lockOwner value for this LockStatus.
70      *
71      * @return lockOwner
72      */

73     public org.alfresco.example.webservice.types.Reference getLockOwner() {
74         return lockOwner;
75     }
76
77
78     /**
79      * Sets the lockOwner value for this LockStatus.
80      *
81      * @param lockOwner
82      */

83     public void setLockOwner(org.alfresco.example.webservice.types.Reference lockOwner) {
84         this.lockOwner = lockOwner;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc 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     // Type metadata
133
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 JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "node"));
141         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockType"));
147         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("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 JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockOwner"));
153         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
154         elemField.setNillable(false);
155         typeDesc.addFieldDesc(elemField);
156     }
157
158     /**
159      * Return type metadata object
160      */

161     public static org.apache.axis.description.TypeDesc getTypeDesc() {
162         return typeDesc;
163     }
164
165     /**
166      * Get Custom Serializer
167      */

168     public static org.apache.axis.encoding.Serializer getSerializer(
169            java.lang.String JavaDoc mechType,
170            java.lang.Class JavaDoc _javaType,
171            javax.xml.namespace.QName JavaDoc _xmlType) {
172         return
173           new org.apache.axis.encoding.ser.BeanSerializer(
174             _javaType, _xmlType, typeDesc);
175     }
176
177     /**
178      * Get Custom Deserializer
179      */

180     public static org.apache.axis.encoding.Deserializer getDeserializer(
181            java.lang.String JavaDoc mechType,
182            java.lang.Class JavaDoc _javaType,
183            javax.xml.namespace.QName JavaDoc _xmlType) {
184         return
185           new org.apache.axis.encoding.ser.BeanDeserializer(
186             _javaType, _xmlType, typeDesc);
187     }
188
189 }
190
Popular Tags