KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > action > ParameterDefinition


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

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

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

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

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

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

89     public void setIsMandatory(boolean isMandatory) {
90         this.isMandatory = isMandatory;
91     }
92
93
94     /**
95      * Gets the displayLabel value for this ParameterDefinition.
96      *
97      * @return displayLabel
98      */

99     public java.lang.String JavaDoc getDisplayLabel() {
100         return displayLabel;
101     }
102
103
104     /**
105      * Sets the displayLabel value for this ParameterDefinition.
106      *
107      * @param displayLabel
108      */

109     public void setDisplayLabel(java.lang.String JavaDoc displayLabel) {
110         this.displayLabel = displayLabel;
111     }
112
113     private java.lang.Object JavaDoc __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
115         if (!(obj instanceof ParameterDefinition)) return false;
116         ParameterDefinition other = (ParameterDefinition) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true &&
125             ((this.name==null && other.getName()==null) ||
126              (this.name!=null &&
127               this.name.equals(other.getName()))) &&
128             ((this.type==null && other.getType()==null) ||
129              (this.type!=null &&
130               this.type.equals(other.getType()))) &&
131             this.isMandatory == other.isIsMandatory() &&
132             ((this.displayLabel==null && other.getDisplayLabel()==null) ||
133              (this.displayLabel!=null &&
134               this.displayLabel.equals(other.getDisplayLabel())));
135         __equalsCalc = null;
136         return _equals;
137     }
138
139     private boolean __hashCodeCalc = false;
140     public synchronized int hashCode() {
141         if (__hashCodeCalc) {
142             return 0;
143         }
144         __hashCodeCalc = true;
145         int _hashCode = 1;
146         if (getName() != null) {
147             _hashCode += getName().hashCode();
148         }
149         if (getType() != null) {
150             _hashCode += getType().hashCode();
151         }
152         _hashCode += (isIsMandatory() ? Boolean.TRUE : Boolean.FALSE).hashCode();
153         if (getDisplayLabel() != null) {
154             _hashCode += getDisplayLabel().hashCode();
155         }
156         __hashCodeCalc = false;
157         return _hashCode;
158     }
159
160     // Type metadata
161
private static org.apache.axis.description.TypeDesc typeDesc =
162         new org.apache.axis.description.TypeDesc(ParameterDefinition.class, true);
163
164     static {
165         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
166         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
167         elemField.setFieldName("name");
168         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "name"));
169         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
170         elemField.setNillable(false);
171         typeDesc.addFieldDesc(elemField);
172         elemField = new org.apache.axis.description.ElementDesc();
173         elemField.setFieldName("type");
174         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "type"));
175         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
176         elemField.setNillable(false);
177         typeDesc.addFieldDesc(elemField);
178         elemField = new org.apache.axis.description.ElementDesc();
179         elemField.setFieldName("isMandatory");
180         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "isMandatory"));
181         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"));
182         elemField.setNillable(false);
183         typeDesc.addFieldDesc(elemField);
184         elemField = new org.apache.axis.description.ElementDesc();
185         elemField.setFieldName("displayLabel");
186         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
187         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
188         elemField.setNillable(true);
189         typeDesc.addFieldDesc(elemField);
190     }
191
192     /**
193      * Return type metadata object
194      */

195     public static org.apache.axis.description.TypeDesc getTypeDesc() {
196         return typeDesc;
197     }
198
199     /**
200      * Get Custom Serializer
201      */

202     public static org.apache.axis.encoding.Serializer getSerializer(
203            java.lang.String JavaDoc mechType,
204            java.lang.Class JavaDoc _javaType,
205            javax.xml.namespace.QName JavaDoc _xmlType) {
206         return
207           new org.apache.axis.encoding.ser.BeanSerializer(
208             _javaType, _xmlType, typeDesc);
209     }
210
211     /**
212      * Get Custom Deserializer
213      */

214     public static org.apache.axis.encoding.Deserializer getDeserializer(
215            java.lang.String JavaDoc mechType,
216            java.lang.Class JavaDoc _javaType,
217            javax.xml.namespace.QName JavaDoc _xmlType) {
218         return
219           new org.apache.axis.encoding.ser.BeanDeserializer(
220             _javaType, _xmlType, typeDesc);
221     }
222
223 }
224
Popular Tags