KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * LockStatus.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.authoring;
9
10 public class LockStatus implements java.io.Serializable JavaDoc {
11     private org.alfresco.repo.webservice.types.Reference node;
12
13     private org.alfresco.repo.webservice.authoring.LockTypeEnum lockType;
14
15     private java.lang.String JavaDoc lockOwner;
16
17     public LockStatus() {
18     }
19
20     public LockStatus(
21            org.alfresco.repo.webservice.types.Reference node,
22            org.alfresco.repo.webservice.authoring.LockTypeEnum lockType,
23            java.lang.String JavaDoc lockOwner) {
24            this.node = node;
25            this.lockType = lockType;
26            this.lockOwner = lockOwner;
27     }
28
29
30     /**
31      * Gets the node value for this LockStatus.
32      *
33      * @return node
34      */

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

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

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

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

75     public java.lang.String JavaDoc getLockOwner() {
76         return lockOwner;
77     }
78
79
80     /**
81      * Sets the lockOwner value for this LockStatus.
82      *
83      * @param lockOwner
84      */

85     public void setLockOwner(java.lang.String JavaDoc lockOwner) {
86         this.lockOwner = lockOwner;
87     }
88
89     private java.lang.Object JavaDoc __equalsCalc = null;
90     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
91         if (!(obj instanceof LockStatus)) return false;
92         LockStatus other = (LockStatus) obj;
93         if (obj == null) return false;
94         if (this == obj) return true;
95         if (__equalsCalc != null) {
96             return (__equalsCalc == obj);
97         }
98         __equalsCalc = obj;
99         boolean _equals;
100         _equals = true &&
101             ((this.node==null && other.getNode()==null) ||
102              (this.node!=null &&
103               this.node.equals(other.getNode()))) &&
104             ((this.lockType==null && other.getLockType()==null) ||
105              (this.lockType!=null &&
106               this.lockType.equals(other.getLockType()))) &&
107             ((this.lockOwner==null && other.getLockOwner()==null) ||
108              (this.lockOwner!=null &&
109               this.lockOwner.equals(other.getLockOwner())));
110         __equalsCalc = null;
111         return _equals;
112     }
113
114     private boolean __hashCodeCalc = false;
115     public synchronized int hashCode() {
116         if (__hashCodeCalc) {
117             return 0;
118         }
119         __hashCodeCalc = true;
120         int _hashCode = 1;
121         if (getNode() != null) {
122             _hashCode += getNode().hashCode();
123         }
124         if (getLockType() != null) {
125             _hashCode += getLockType().hashCode();
126         }
127         if (getLockOwner() != null) {
128             _hashCode += getLockOwner().hashCode();
129         }
130         __hashCodeCalc = false;
131         return _hashCode;
132     }
133
134     // Type metadata
135
private static org.apache.axis.description.TypeDesc typeDesc =
136         new org.apache.axis.description.TypeDesc(LockStatus.class, true);
137
138     static {
139         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockStatus"));
140         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
141         elemField.setFieldName("node");
142         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "node"));
143         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
144         elemField.setNillable(false);
145         typeDesc.addFieldDesc(elemField);
146         elemField = new org.apache.axis.description.ElementDesc();
147         elemField.setFieldName("lockType");
148         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockType"));
149         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "LockTypeEnum"));
150         elemField.setMinOccurs(0);
151         elemField.setNillable(true);
152         typeDesc.addFieldDesc(elemField);
153         elemField = new org.apache.axis.description.ElementDesc();
154         elemField.setFieldName("lockOwner");
155         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/authoring/1.0", "lockOwner"));
156         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
157         elemField.setMinOccurs(0);
158         elemField.setNillable(true);
159         typeDesc.addFieldDesc(elemField);
160     }
161
162     /**
163      * Return type metadata object
164      */

165     public static org.apache.axis.description.TypeDesc getTypeDesc() {
166         return typeDesc;
167     }
168
169     /**
170      * Get Custom Serializer
171      */

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

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