KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

220     public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
226             _javaType, _xmlType, typeDesc);
227     }
228
229 }
230
Popular Tags