KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > webservice > action > Condition


1 /**
2  * Condition.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.webservice.action;
9
10 public class Condition implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc id;
12
13     private java.lang.String JavaDoc conditionName;
14
15     private boolean invertCondition;
16
17     private org.alfresco.webservice.types.NamedValue[] parameters;
18
19     public Condition() {
20     }
21
22     public Condition(
23            java.lang.String JavaDoc id,
24            java.lang.String JavaDoc conditionName,
25            boolean invertCondition,
26            org.alfresco.webservice.types.NamedValue[] parameters) {
27            this.id = id;
28            this.conditionName = conditionName;
29            this.invertCondition = invertCondition;
30            this.parameters = parameters;
31     }
32
33
34     /**
35      * Gets the id value for this Condition.
36      *
37      * @return id
38      */

39     public java.lang.String JavaDoc getId() {
40         return id;
41     }
42
43
44     /**
45      * Sets the id value for this Condition.
46      *
47      * @param id
48      */

49     public void setId(java.lang.String JavaDoc id) {
50         this.id = id;
51     }
52
53
54     /**
55      * Gets the conditionName value for this Condition.
56      *
57      * @return conditionName
58      */

59     public java.lang.String JavaDoc getConditionName() {
60         return conditionName;
61     }
62
63
64     /**
65      * Sets the conditionName value for this Condition.
66      *
67      * @param conditionName
68      */

69     public void setConditionName(java.lang.String JavaDoc conditionName) {
70         this.conditionName = conditionName;
71     }
72
73
74     /**
75      * Gets the invertCondition value for this Condition.
76      *
77      * @return invertCondition
78      */

79     public boolean isInvertCondition() {
80         return invertCondition;
81     }
82
83
84     /**
85      * Sets the invertCondition value for this Condition.
86      *
87      * @param invertCondition
88      */

89     public void setInvertCondition(boolean invertCondition) {
90         this.invertCondition = invertCondition;
91     }
92
93
94     /**
95      * Gets the parameters value for this Condition.
96      *
97      * @return parameters
98      */

99     public org.alfresco.webservice.types.NamedValue[] getParameters() {
100         return parameters;
101     }
102
103
104     /**
105      * Sets the parameters value for this Condition.
106      *
107      * @param parameters
108      */

109     public void setParameters(org.alfresco.webservice.types.NamedValue[] parameters) {
110         this.parameters = parameters;
111     }
112
113     public org.alfresco.webservice.types.NamedValue getParameters(int i) {
114         return this.parameters[i];
115     }
116
117     public void setParameters(int i, org.alfresco.webservice.types.NamedValue _value) {
118         this.parameters[i] = _value;
119     }
120
121     private java.lang.Object JavaDoc __equalsCalc = null;
122     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
123         if (!(obj instanceof Condition)) return false;
124         Condition other = (Condition) obj;
125         if (obj == null) return false;
126         if (this == obj) return true;
127         if (__equalsCalc != null) {
128             return (__equalsCalc == obj);
129         }
130         __equalsCalc = obj;
131         boolean _equals;
132         _equals = true &&
133             ((this.id==null && other.getId()==null) ||
134              (this.id!=null &&
135               this.id.equals(other.getId()))) &&
136             ((this.conditionName==null && other.getConditionName()==null) ||
137              (this.conditionName!=null &&
138               this.conditionName.equals(other.getConditionName()))) &&
139             this.invertCondition == other.isInvertCondition() &&
140             ((this.parameters==null && other.getParameters()==null) ||
141              (this.parameters!=null &&
142               java.util.Arrays.equals(this.parameters, other.getParameters())));
143         __equalsCalc = null;
144         return _equals;
145     }
146
147     private boolean __hashCodeCalc = false;
148     public synchronized int hashCode() {
149         if (__hashCodeCalc) {
150             return 0;
151         }
152         __hashCodeCalc = true;
153         int _hashCode = 1;
154         if (getId() != null) {
155             _hashCode += getId().hashCode();
156         }
157         if (getConditionName() != null) {
158             _hashCode += getConditionName().hashCode();
159         }
160         _hashCode += (isInvertCondition() ? Boolean.TRUE : Boolean.FALSE).hashCode();
161         if (getParameters() != null) {
162             for (int i=0;
163                  i<java.lang.reflect.Array.getLength(getParameters());
164                  i++) {
165                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getParameters(), i);
166                 if (obj != null &&
167                     !obj.getClass().isArray()) {
168                     _hashCode += obj.hashCode();
169                 }
170             }
171         }
172         __hashCodeCalc = false;
173         return _hashCode;
174     }
175
176     // Type metadata
177
private static org.apache.axis.description.TypeDesc typeDesc =
178         new org.apache.axis.description.TypeDesc(Condition.class, true);
179
180     static {
181         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "Condition"));
182         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
183         elemField.setFieldName("id");
184         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "id"));
185         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
186         elemField.setNillable(false);
187         typeDesc.addFieldDesc(elemField);
188         elemField = new org.apache.axis.description.ElementDesc();
189         elemField.setFieldName("conditionName");
190         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "conditionName"));
191         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
192         elemField.setNillable(false);
193         typeDesc.addFieldDesc(elemField);
194         elemField = new org.apache.axis.description.ElementDesc();
195         elemField.setFieldName("invertCondition");
196         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "invertCondition"));
197         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
198         elemField.setNillable(false);
199         typeDesc.addFieldDesc(elemField);
200         elemField = new org.apache.axis.description.ElementDesc();
201         elemField.setFieldName("parameters");
202         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "parameters"));
203         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
204         elemField.setMinOccurs(0);
205         elemField.setNillable(true);
206         elemField.setMaxOccursUnbounded(true);
207         typeDesc.addFieldDesc(elemField);
208     }
209
210     /**
211      * Return type metadata object
212      */

213     public static org.apache.axis.description.TypeDesc getTypeDesc() {
214         return typeDesc;
215     }
216
217     /**
218      * Get Custom Serializer
219      */

220     public static org.apache.axis.encoding.Serializer getSerializer(
221            java.lang.String JavaDoc mechType,
222            java.lang.Class JavaDoc _javaType,
223            javax.xml.namespace.QName JavaDoc _xmlType) {
224         return
225           new org.apache.axis.encoding.ser.BeanSerializer(
226             _javaType, _xmlType, typeDesc);
227     }
228
229     /**
230      * Get Custom Deserializer
231      */

232     public static org.apache.axis.encoding.Deserializer getDeserializer(
233            java.lang.String JavaDoc mechType,
234            java.lang.Class JavaDoc _javaType,
235            javax.xml.namespace.QName JavaDoc _xmlType) {
236         return
237           new org.apache.axis.encoding.ser.BeanDeserializer(
238             _javaType, _xmlType, typeDesc);
239     }
240
241 }
242
Popular Tags