KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > ValueDefinition


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

36     public java.lang.String JavaDoc getName() {
37         return name;
38     }
39
40
41     /**
42      * Sets the name value for this ValueDefinition.
43      *
44      * @param name
45      */

46     public void setName(java.lang.String JavaDoc name) {
47         this.name = name;
48     }
49
50
51     /**
52      * Gets the title value for this ValueDefinition.
53      *
54      * @return title
55      */

56     public java.lang.String JavaDoc getTitle() {
57         return title;
58     }
59
60
61     /**
62      * Sets the title value for this ValueDefinition.
63      *
64      * @param title
65      */

66     public void setTitle(java.lang.String JavaDoc title) {
67         this.title = title;
68     }
69
70
71     /**
72      * Gets the description value for this ValueDefinition.
73      *
74      * @return description
75      */

76     public java.lang.String JavaDoc getDescription() {
77         return description;
78     }
79
80
81     /**
82      * Sets the description value for this ValueDefinition.
83      *
84      * @param description
85      */

86     public void setDescription(java.lang.String JavaDoc description) {
87         this.description = description;
88     }
89
90
91     /**
92      * Gets the dataType value for this ValueDefinition.
93      *
94      * @return dataType
95      */

96     public java.lang.String JavaDoc getDataType() {
97         return dataType;
98     }
99
100
101     /**
102      * Sets the dataType value for this ValueDefinition.
103      *
104      * @param dataType
105      */

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

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

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

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