1   /**
2    * PropertyList.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 PropertyList  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.Property[] properties;
12      private oasis.names.tc.wsrp.v1.types.ResetProperty[] resetProperties;
13      private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
14  
15      public PropertyList() {
16      }
17  
18      public PropertyList(
19             oasis.names.tc.wsrp.v1.types.Extension[] extensions,
20             oasis.names.tc.wsrp.v1.types.Property[] properties,
21             oasis.names.tc.wsrp.v1.types.ResetProperty[] resetProperties) {
22             this.properties = properties;
23             this.resetProperties = resetProperties;
24             this.extensions = extensions;
25      }
26  
27  
28      /**
29       * Gets the properties value for this PropertyList.
30       * 
31       * @return properties
32       */
33      public oasis.names.tc.wsrp.v1.types.Property[] getProperties() {
34          return properties;
35      }
36  
37  
38      /**
39       * Sets the properties value for this PropertyList.
40       * 
41       * @param properties
42       */
43      public void setProperties(oasis.names.tc.wsrp.v1.types.Property[] properties) {
44          this.properties = properties;
45      }
46  
47      public oasis.names.tc.wsrp.v1.types.Property getProperties(int i) {
48          return this.properties[i];
49      }
50  
51      public void setProperties(int i, oasis.names.tc.wsrp.v1.types.Property _value) {
52          this.properties[i] = _value;
53      }
54  
55  
56      /**
57       * Gets the resetProperties value for this PropertyList.
58       * 
59       * @return resetProperties
60       */
61      public oasis.names.tc.wsrp.v1.types.ResetProperty[] getResetProperties() {
62          return resetProperties;
63      }
64  
65  
66      /**
67       * Sets the resetProperties value for this PropertyList.
68       * 
69       * @param resetProperties
70       */
71      public void setResetProperties(oasis.names.tc.wsrp.v1.types.ResetProperty[] resetProperties) {
72          this.resetProperties = resetProperties;
73      }
74  
75      public oasis.names.tc.wsrp.v1.types.ResetProperty getResetProperties(int i) {
76          return this.resetProperties[i];
77      }
78  
79      public void setResetProperties(int i, oasis.names.tc.wsrp.v1.types.ResetProperty _value) {
80          this.resetProperties[i] = _value;
81      }
82  
83  
84      /**
85       * Gets the extensions value for this PropertyList.
86       * 
87       * @return extensions
88       */
89      public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
90          return extensions;
91      }
92  
93  
94      /**
95       * Sets the extensions value for this PropertyList.
96       * 
97       * @param extensions
98       */
99      public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
100         this.extensions = extensions;
101     }
102 
103     public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
104         return this.extensions[i];
105     }
106 
107     public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
108         this.extensions[i] = _value;
109     }
110 
111     private java.lang.Object __equalsCalc = null;
112     public synchronized boolean equals(java.lang.Object obj) {
113         if (!(obj instanceof PropertyList)) return false;
114         PropertyList other = (PropertyList) obj;
115         if (obj == null) return false;
116         if (this == obj) return true;
117         if (__equalsCalc != null) {
118             return (__equalsCalc == obj);
119         }
120         __equalsCalc = obj;
121         boolean _equals;
122         _equals = true && 
123             ((this.properties==null && other.getProperties()==null) || 
124              (this.properties!=null &&
125               java.util.Arrays.equals(this.properties, other.getProperties()))) &&
126             ((this.resetProperties==null && other.getResetProperties()==null) || 
127              (this.resetProperties!=null &&
128               java.util.Arrays.equals(this.resetProperties, other.getResetProperties()))) &&
129             ((this.extensions==null && other.getExtensions()==null) || 
130              (this.extensions!=null &&
131               java.util.Arrays.equals(this.extensions, other.getExtensions())));
132         __equalsCalc = null;
133         return _equals;
134     }
135 
136     private boolean __hashCodeCalc = false;
137     public synchronized int hashCode() {
138         if (__hashCodeCalc) {
139             return 0;
140         }
141         __hashCodeCalc = true;
142         int _hashCode = 1;
143         if (getProperties() != null) {
144             for (int i=0;
145                  i<java.lang.reflect.Array.getLength(getProperties());
146                  i++) {
147                 java.lang.Object obj = java.lang.reflect.Array.get(getProperties(), i);
148                 if (obj != null &&
149                     !obj.getClass().isArray()) {
150                     _hashCode += obj.hashCode();
151                 }
152             }
153         }
154         if (getResetProperties() != null) {
155             for (int i=0;
156                  i<java.lang.reflect.Array.getLength(getResetProperties());
157                  i++) {
158                 java.lang.Object obj = java.lang.reflect.Array.get(getResetProperties(), i);
159                 if (obj != null &&
160                     !obj.getClass().isArray()) {
161                     _hashCode += obj.hashCode();
162                 }
163             }
164         }
165         if (getExtensions() != null) {
166             for (int i=0;
167                  i<java.lang.reflect.Array.getLength(getExtensions());
168                  i++) {
169                 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
170                 if (obj != null &&
171                     !obj.getClass().isArray()) {
172                     _hashCode += obj.hashCode();
173                 }
174             }
175         }
176         __hashCodeCalc = false;
177         return _hashCode;
178     }
179 
180     // Type metadata
181     private static org.apache.axis.description.TypeDesc typeDesc =
182         new org.apache.axis.description.TypeDesc(PropertyList.class, true);
183 
184     static {
185         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PropertyList"));
186         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
187         elemField.setFieldName("properties");
188         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "properties"));
189         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Property"));
190         elemField.setMinOccurs(0);
191         typeDesc.addFieldDesc(elemField);
192         elemField = new org.apache.axis.description.ElementDesc();
193         elemField.setFieldName("resetProperties");
194         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "resetProperties"));
195         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ResetProperty"));
196         elemField.setMinOccurs(0);
197         typeDesc.addFieldDesc(elemField);
198         elemField = new org.apache.axis.description.ElementDesc();
199         elemField.setFieldName("extensions");
200         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
201         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
202         elemField.setMinOccurs(0);
203         typeDesc.addFieldDesc(elemField);
204     }
205 
206     /**
207      * Return type metadata object
208      */
209     public static org.apache.axis.description.TypeDesc getTypeDesc() {
210         return typeDesc;
211     }
212 
213     /**
214      * Get Custom Serializer
215      */
216     public static org.apache.axis.encoding.Serializer getSerializer(
217            java.lang.String mechType, 
218            java.lang.Class _javaType,  
219            javax.xml.namespace.QName _xmlType) {
220         return 
221           new  org.apache.axis.encoding.ser.BeanSerializer(
222             _javaType, _xmlType, typeDesc);
223     }
224 
225     /**
226      * Get Custom Deserializer
227      */
228     public static org.apache.axis.encoding.Deserializer getDeserializer(
229            java.lang.String mechType, 
230            java.lang.Class _javaType,  
231            javax.xml.namespace.QName _xmlType) {
232         return 
233           new  org.apache.axis.encoding.ser.BeanDeserializer(
234             _javaType, _xmlType, typeDesc);
235     }
236 
237 }
238