1   /**
2    * PropertyDescription.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
6    */
7   
8   package oasis.names.tc.wsrp.v1.types;
9   
10  public class PropertyDescription  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.LocalizedString label;
12      private oasis.names.tc.wsrp.v1.types.LocalizedString hint;
13      private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
14      private java.lang.String name;  // attribute
15      private javax.xml.namespace.QName type;  // attribute
16  
17      public PropertyDescription() {
18      }
19  
20      public PropertyDescription(
21             oasis.names.tc.wsrp.v1.types.Extension[] extensions,
22             oasis.names.tc.wsrp.v1.types.LocalizedString hint,
23             oasis.names.tc.wsrp.v1.types.LocalizedString label,
24             java.lang.String name,
25             javax.xml.namespace.QName type) {
26             this.label = label;
27             this.hint = hint;
28             this.extensions = extensions;
29             this.name = name;
30             this.type = type;
31      }
32  
33  
34      /**
35       * Gets the label value for this PropertyDescription.
36       * 
37       * @return label
38       */
39      public oasis.names.tc.wsrp.v1.types.LocalizedString getLabel() {
40          return label;
41      }
42  
43  
44      /**
45       * Sets the label value for this PropertyDescription.
46       * 
47       * @param label
48       */
49      public void setLabel(oasis.names.tc.wsrp.v1.types.LocalizedString label) {
50          this.label = label;
51      }
52  
53  
54      /**
55       * Gets the hint value for this PropertyDescription.
56       * 
57       * @return hint
58       */
59      public oasis.names.tc.wsrp.v1.types.LocalizedString getHint() {
60          return hint;
61      }
62  
63  
64      /**
65       * Sets the hint value for this PropertyDescription.
66       * 
67       * @param hint
68       */
69      public void setHint(oasis.names.tc.wsrp.v1.types.LocalizedString hint) {
70          this.hint = hint;
71      }
72  
73  
74      /**
75       * Gets the extensions value for this PropertyDescription.
76       * 
77       * @return extensions
78       */
79      public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
80          return extensions;
81      }
82  
83  
84      /**
85       * Sets the extensions value for this PropertyDescription.
86       * 
87       * @param extensions
88       */
89      public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
90          this.extensions = extensions;
91      }
92  
93      public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
94          return this.extensions[i];
95      }
96  
97      public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
98          this.extensions[i] = _value;
99      }
100 
101 
102     /**
103      * Gets the name value for this PropertyDescription.
104      * 
105      * @return name
106      */
107     public java.lang.String getName() {
108         return name;
109     }
110 
111 
112     /**
113      * Sets the name value for this PropertyDescription.
114      * 
115      * @param name
116      */
117     public void setName(java.lang.String name) {
118         this.name = name;
119     }
120 
121 
122     /**
123      * Gets the type value for this PropertyDescription.
124      * 
125      * @return type
126      */
127     public javax.xml.namespace.QName getType() {
128         return type;
129     }
130 
131 
132     /**
133      * Sets the type value for this PropertyDescription.
134      * 
135      * @param type
136      */
137     public void setType(javax.xml.namespace.QName type) {
138         this.type = type;
139     }
140 
141     private java.lang.Object __equalsCalc = null;
142     public synchronized boolean equals(java.lang.Object obj) {
143         if (!(obj instanceof PropertyDescription)) return false;
144         PropertyDescription other = (PropertyDescription) obj;
145         if (obj == null) return false;
146         if (this == obj) return true;
147         if (__equalsCalc != null) {
148             return (__equalsCalc == obj);
149         }
150         __equalsCalc = obj;
151         boolean _equals;
152         _equals = true && 
153             ((this.label==null && other.getLabel()==null) || 
154              (this.label!=null &&
155               this.label.equals(other.getLabel()))) &&
156             ((this.hint==null && other.getHint()==null) || 
157              (this.hint!=null &&
158               this.hint.equals(other.getHint()))) &&
159             ((this.extensions==null && other.getExtensions()==null) || 
160              (this.extensions!=null &&
161               java.util.Arrays.equals(this.extensions, other.getExtensions()))) &&
162             ((this.name==null && other.getName()==null) || 
163              (this.name!=null &&
164               this.name.equals(other.getName()))) &&
165             ((this.type==null && other.getType()==null) || 
166              (this.type!=null &&
167               this.type.equals(other.getType())));
168         __equalsCalc = null;
169         return _equals;
170     }
171 
172     private boolean __hashCodeCalc = false;
173     public synchronized int hashCode() {
174         if (__hashCodeCalc) {
175             return 0;
176         }
177         __hashCodeCalc = true;
178         int _hashCode = 1;
179         if (getLabel() != null) {
180             _hashCode += getLabel().hashCode();
181         }
182         if (getHint() != null) {
183             _hashCode += getHint().hashCode();
184         }
185         if (getExtensions() != null) {
186             for (int i=0;
187                  i<java.lang.reflect.Array.getLength(getExtensions());
188                  i++) {
189                 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
190                 if (obj != null &&
191                     !obj.getClass().isArray()) {
192                     _hashCode += obj.hashCode();
193                 }
194             }
195         }
196         if (getName() != null) {
197             _hashCode += getName().hashCode();
198         }
199         if (getType() != null) {
200             _hashCode += getType().hashCode();
201         }
202         __hashCodeCalc = false;
203         return _hashCode;
204     }
205 
206     // Type metadata
207     private static org.apache.axis.description.TypeDesc typeDesc =
208         new org.apache.axis.description.TypeDesc(PropertyDescription.class, true);
209 
210     static {
211         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PropertyDescription"));
212         org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
213         attrField.setFieldName("name");
214         attrField.setXmlName(new javax.xml.namespace.QName("", "name"));
215         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
216         typeDesc.addFieldDesc(attrField);
217         attrField = new org.apache.axis.description.AttributeDesc();
218         attrField.setFieldName("type");
219         attrField.setXmlName(new javax.xml.namespace.QName("", "type"));
220         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "QName"));
221         typeDesc.addFieldDesc(attrField);
222         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
223         elemField.setFieldName("label");
224         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "label"));
225         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "LocalizedString"));
226         elemField.setMinOccurs(0);
227         typeDesc.addFieldDesc(elemField);
228         elemField = new org.apache.axis.description.ElementDesc();
229         elemField.setFieldName("hint");
230         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "hint"));
231         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "LocalizedString"));
232         elemField.setMinOccurs(0);
233         typeDesc.addFieldDesc(elemField);
234         elemField = new org.apache.axis.description.ElementDesc();
235         elemField.setFieldName("extensions");
236         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
237         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
238         elemField.setMinOccurs(0);
239         typeDesc.addFieldDesc(elemField);
240     }
241 
242     /**
243      * Return type metadata object
244      */
245     public static org.apache.axis.description.TypeDesc getTypeDesc() {
246         return typeDesc;
247     }
248 
249     /**
250      * Get Custom Serializer
251      */
252     public static org.apache.axis.encoding.Serializer getSerializer(
253            java.lang.String mechType, 
254            java.lang.Class _javaType,  
255            javax.xml.namespace.QName _xmlType) {
256         return 
257           new  org.apache.axis.encoding.ser.BeanSerializer(
258             _javaType, _xmlType, typeDesc);
259     }
260 
261     /**
262      * Get Custom Deserializer
263      */
264     public static org.apache.axis.encoding.Deserializer getDeserializer(
265            java.lang.String mechType, 
266            java.lang.Class _javaType,  
267            javax.xml.namespace.QName _xmlType) {
268         return 
269           new  org.apache.axis.encoding.ser.BeanDeserializer(
270             _javaType, _xmlType, typeDesc);
271     }
272 
273 }
274