001: /**
002: * RegistrationData.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006: */package oasis.names.tc.wsrp.v1.types;
007:
008: public class RegistrationData implements java.io.Serializable {
009: private java.lang.String consumerName;
010: private java.lang.String consumerAgent;
011: private boolean methodGetSupported;
012: private java.lang.String[] consumerModes;
013: private java.lang.String[] consumerWindowStates;
014: private java.lang.String[] consumerUserScopes;
015: private java.lang.String[] customUserProfileData;
016: private oasis.names.tc.wsrp.v1.types.Property[] registrationProperties;
017: private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
018:
019: public RegistrationData() {
020: }
021:
022: public RegistrationData(
023: java.lang.String consumerAgent,
024: java.lang.String[] consumerModes,
025: java.lang.String consumerName,
026: java.lang.String[] consumerUserScopes,
027: java.lang.String[] consumerWindowStates,
028: java.lang.String[] customUserProfileData,
029: oasis.names.tc.wsrp.v1.types.Extension[] extensions,
030: boolean methodGetSupported,
031: oasis.names.tc.wsrp.v1.types.Property[] registrationProperties) {
032: this .consumerName = consumerName;
033: this .consumerAgent = consumerAgent;
034: this .methodGetSupported = methodGetSupported;
035: this .consumerModes = consumerModes;
036: this .consumerWindowStates = consumerWindowStates;
037: this .consumerUserScopes = consumerUserScopes;
038: this .customUserProfileData = customUserProfileData;
039: this .registrationProperties = registrationProperties;
040: this .extensions = extensions;
041: }
042:
043: /**
044: * Gets the consumerName value for this RegistrationData.
045: *
046: * @return consumerName
047: */
048: public java.lang.String getConsumerName() {
049: return consumerName;
050: }
051:
052: /**
053: * Sets the consumerName value for this RegistrationData.
054: *
055: * @param consumerName
056: */
057: public void setConsumerName(java.lang.String consumerName) {
058: this .consumerName = consumerName;
059: }
060:
061: /**
062: * Gets the consumerAgent value for this RegistrationData.
063: *
064: * @return consumerAgent
065: */
066: public java.lang.String getConsumerAgent() {
067: return consumerAgent;
068: }
069:
070: /**
071: * Sets the consumerAgent value for this RegistrationData.
072: *
073: * @param consumerAgent
074: */
075: public void setConsumerAgent(java.lang.String consumerAgent) {
076: this .consumerAgent = consumerAgent;
077: }
078:
079: /**
080: * Gets the methodGetSupported value for this RegistrationData.
081: *
082: * @return methodGetSupported
083: */
084: public boolean isMethodGetSupported() {
085: return methodGetSupported;
086: }
087:
088: /**
089: * Sets the methodGetSupported value for this RegistrationData.
090: *
091: * @param methodGetSupported
092: */
093: public void setMethodGetSupported(boolean methodGetSupported) {
094: this .methodGetSupported = methodGetSupported;
095: }
096:
097: /**
098: * Gets the consumerModes value for this RegistrationData.
099: *
100: * @return consumerModes
101: */
102: public java.lang.String[] getConsumerModes() {
103: return consumerModes;
104: }
105:
106: /**
107: * Sets the consumerModes value for this RegistrationData.
108: *
109: * @param consumerModes
110: */
111: public void setConsumerModes(java.lang.String[] consumerModes) {
112: this .consumerModes = consumerModes;
113: }
114:
115: public java.lang.String getConsumerModes(int i) {
116: return this .consumerModes[i];
117: }
118:
119: public void setConsumerModes(int i, java.lang.String _value) {
120: this .consumerModes[i] = _value;
121: }
122:
123: /**
124: * Gets the consumerWindowStates value for this RegistrationData.
125: *
126: * @return consumerWindowStates
127: */
128: public java.lang.String[] getConsumerWindowStates() {
129: return consumerWindowStates;
130: }
131:
132: /**
133: * Sets the consumerWindowStates value for this RegistrationData.
134: *
135: * @param consumerWindowStates
136: */
137: public void setConsumerWindowStates(
138: java.lang.String[] consumerWindowStates) {
139: this .consumerWindowStates = consumerWindowStates;
140: }
141:
142: public java.lang.String getConsumerWindowStates(int i) {
143: return this .consumerWindowStates[i];
144: }
145:
146: public void setConsumerWindowStates(int i, java.lang.String _value) {
147: this .consumerWindowStates[i] = _value;
148: }
149:
150: /**
151: * Gets the consumerUserScopes value for this RegistrationData.
152: *
153: * @return consumerUserScopes
154: */
155: public java.lang.String[] getConsumerUserScopes() {
156: return consumerUserScopes;
157: }
158:
159: /**
160: * Sets the consumerUserScopes value for this RegistrationData.
161: *
162: * @param consumerUserScopes
163: */
164: public void setConsumerUserScopes(
165: java.lang.String[] consumerUserScopes) {
166: this .consumerUserScopes = consumerUserScopes;
167: }
168:
169: public java.lang.String getConsumerUserScopes(int i) {
170: return this .consumerUserScopes[i];
171: }
172:
173: public void setConsumerUserScopes(int i, java.lang.String _value) {
174: this .consumerUserScopes[i] = _value;
175: }
176:
177: /**
178: * Gets the customUserProfileData value for this RegistrationData.
179: *
180: * @return customUserProfileData
181: */
182: public java.lang.String[] getCustomUserProfileData() {
183: return customUserProfileData;
184: }
185:
186: /**
187: * Sets the customUserProfileData value for this RegistrationData.
188: *
189: * @param customUserProfileData
190: */
191: public void setCustomUserProfileData(
192: java.lang.String[] customUserProfileData) {
193: this .customUserProfileData = customUserProfileData;
194: }
195:
196: public java.lang.String getCustomUserProfileData(int i) {
197: return this .customUserProfileData[i];
198: }
199:
200: public void setCustomUserProfileData(int i, java.lang.String _value) {
201: this .customUserProfileData[i] = _value;
202: }
203:
204: /**
205: * Gets the registrationProperties value for this RegistrationData.
206: *
207: * @return registrationProperties
208: */
209: public oasis.names.tc.wsrp.v1.types.Property[] getRegistrationProperties() {
210: return registrationProperties;
211: }
212:
213: /**
214: * Sets the registrationProperties value for this RegistrationData.
215: *
216: * @param registrationProperties
217: */
218: public void setRegistrationProperties(
219: oasis.names.tc.wsrp.v1.types.Property[] registrationProperties) {
220: this .registrationProperties = registrationProperties;
221: }
222:
223: public oasis.names.tc.wsrp.v1.types.Property getRegistrationProperties(
224: int i) {
225: return this .registrationProperties[i];
226: }
227:
228: public void setRegistrationProperties(int i,
229: oasis.names.tc.wsrp.v1.types.Property _value) {
230: this .registrationProperties[i] = _value;
231: }
232:
233: /**
234: * Gets the extensions value for this RegistrationData.
235: *
236: * @return extensions
237: */
238: public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
239: return extensions;
240: }
241:
242: /**
243: * Sets the extensions value for this RegistrationData.
244: *
245: * @param extensions
246: */
247: public void setExtensions(
248: oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
249: this .extensions = extensions;
250: }
251:
252: public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
253: return this .extensions[i];
254: }
255:
256: public void setExtensions(int i,
257: oasis.names.tc.wsrp.v1.types.Extension _value) {
258: this .extensions[i] = _value;
259: }
260:
261: private java.lang.Object __equalsCalc = null;
262:
263: public synchronized boolean equals(java.lang.Object obj) {
264: if (!(obj instanceof RegistrationData))
265: return false;
266: RegistrationData other = (RegistrationData) obj;
267: if (obj == null)
268: return false;
269: if (this == obj)
270: return true;
271: if (__equalsCalc != null) {
272: return (__equalsCalc == obj);
273: }
274: __equalsCalc = obj;
275: boolean _equals;
276: _equals = true
277: && ((this .consumerName == null && other
278: .getConsumerName() == null) || (this .consumerName != null && this .consumerName
279: .equals(other.getConsumerName())))
280: && ((this .consumerAgent == null && other
281: .getConsumerAgent() == null) || (this .consumerAgent != null && this .consumerAgent
282: .equals(other.getConsumerAgent())))
283: && this .methodGetSupported == other
284: .isMethodGetSupported()
285: && ((this .consumerModes == null && other
286: .getConsumerModes() == null) || (this .consumerModes != null && java.util.Arrays
287: .equals(this .consumerModes, other
288: .getConsumerModes())))
289: && ((this .consumerWindowStates == null && other
290: .getConsumerWindowStates() == null) || (this .consumerWindowStates != null && java.util.Arrays
291: .equals(this .consumerWindowStates, other
292: .getConsumerWindowStates())))
293: && ((this .consumerUserScopes == null && other
294: .getConsumerUserScopes() == null) || (this .consumerUserScopes != null && java.util.Arrays
295: .equals(this .consumerUserScopes, other
296: .getConsumerUserScopes())))
297: && ((this .customUserProfileData == null && other
298: .getCustomUserProfileData() == null) || (this .customUserProfileData != null && java.util.Arrays
299: .equals(this .customUserProfileData, other
300: .getCustomUserProfileData())))
301: && ((this .registrationProperties == null && other
302: .getRegistrationProperties() == null) || (this .registrationProperties != null && java.util.Arrays
303: .equals(this .registrationProperties, other
304: .getRegistrationProperties())))
305: && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
306: .equals(this .extensions, other.getExtensions())));
307: __equalsCalc = null;
308: return _equals;
309: }
310:
311: private boolean __hashCodeCalc = false;
312:
313: public synchronized int hashCode() {
314: if (__hashCodeCalc) {
315: return 0;
316: }
317: __hashCodeCalc = true;
318: int _hashCode = 1;
319: if (getConsumerName() != null) {
320: _hashCode += getConsumerName().hashCode();
321: }
322: if (getConsumerAgent() != null) {
323: _hashCode += getConsumerAgent().hashCode();
324: }
325: _hashCode += (isMethodGetSupported() ? Boolean.TRUE
326: : Boolean.FALSE).hashCode();
327: if (getConsumerModes() != null) {
328: for (int i = 0; i < java.lang.reflect.Array
329: .getLength(getConsumerModes()); i++) {
330: java.lang.Object obj = java.lang.reflect.Array.get(
331: getConsumerModes(), i);
332: if (obj != null && !obj.getClass().isArray()) {
333: _hashCode += obj.hashCode();
334: }
335: }
336: }
337: if (getConsumerWindowStates() != null) {
338: for (int i = 0; i < java.lang.reflect.Array
339: .getLength(getConsumerWindowStates()); i++) {
340: java.lang.Object obj = java.lang.reflect.Array.get(
341: getConsumerWindowStates(), i);
342: if (obj != null && !obj.getClass().isArray()) {
343: _hashCode += obj.hashCode();
344: }
345: }
346: }
347: if (getConsumerUserScopes() != null) {
348: for (int i = 0; i < java.lang.reflect.Array
349: .getLength(getConsumerUserScopes()); i++) {
350: java.lang.Object obj = java.lang.reflect.Array.get(
351: getConsumerUserScopes(), i);
352: if (obj != null && !obj.getClass().isArray()) {
353: _hashCode += obj.hashCode();
354: }
355: }
356: }
357: if (getCustomUserProfileData() != null) {
358: for (int i = 0; i < java.lang.reflect.Array
359: .getLength(getCustomUserProfileData()); i++) {
360: java.lang.Object obj = java.lang.reflect.Array.get(
361: getCustomUserProfileData(), i);
362: if (obj != null && !obj.getClass().isArray()) {
363: _hashCode += obj.hashCode();
364: }
365: }
366: }
367: if (getRegistrationProperties() != null) {
368: for (int i = 0; i < java.lang.reflect.Array
369: .getLength(getRegistrationProperties()); i++) {
370: java.lang.Object obj = java.lang.reflect.Array.get(
371: getRegistrationProperties(), i);
372: if (obj != null && !obj.getClass().isArray()) {
373: _hashCode += obj.hashCode();
374: }
375: }
376: }
377: if (getExtensions() != null) {
378: for (int i = 0; i < java.lang.reflect.Array
379: .getLength(getExtensions()); i++) {
380: java.lang.Object obj = java.lang.reflect.Array.get(
381: getExtensions(), i);
382: if (obj != null && !obj.getClass().isArray()) {
383: _hashCode += obj.hashCode();
384: }
385: }
386: }
387: __hashCodeCalc = false;
388: return _hashCode;
389: }
390:
391: // Type metadata
392: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
393: RegistrationData.class, true);
394:
395: static {
396: typeDesc
397: .setXmlType(new javax.xml.namespace.QName(
398: "urn:oasis:names:tc:wsrp:v1:types",
399: "RegistrationData"));
400: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
401: elemField.setFieldName("consumerName");
402: elemField.setXmlName(new javax.xml.namespace.QName(
403: "urn:oasis:names:tc:wsrp:v1:types", "consumerName"));
404: elemField.setXmlType(new javax.xml.namespace.QName(
405: "http://www.w3.org/2001/XMLSchema", "string"));
406: typeDesc.addFieldDesc(elemField);
407: elemField = new org.apache.axis.description.ElementDesc();
408: elemField.setFieldName("consumerAgent");
409: elemField.setXmlName(new javax.xml.namespace.QName(
410: "urn:oasis:names:tc:wsrp:v1:types", "consumerAgent"));
411: elemField.setXmlType(new javax.xml.namespace.QName(
412: "http://www.w3.org/2001/XMLSchema", "string"));
413: typeDesc.addFieldDesc(elemField);
414: elemField = new org.apache.axis.description.ElementDesc();
415: elemField.setFieldName("methodGetSupported");
416: elemField.setXmlName(new javax.xml.namespace.QName(
417: "urn:oasis:names:tc:wsrp:v1:types",
418: "methodGetSupported"));
419: elemField.setXmlType(new javax.xml.namespace.QName(
420: "http://www.w3.org/2001/XMLSchema", "boolean"));
421: typeDesc.addFieldDesc(elemField);
422: elemField = new org.apache.axis.description.ElementDesc();
423: elemField.setFieldName("consumerModes");
424: elemField.setXmlName(new javax.xml.namespace.QName(
425: "urn:oasis:names:tc:wsrp:v1:types", "consumerModes"));
426: elemField.setXmlType(new javax.xml.namespace.QName(
427: "http://www.w3.org/2001/XMLSchema", "string"));
428: elemField.setMinOccurs(0);
429: typeDesc.addFieldDesc(elemField);
430: elemField = new org.apache.axis.description.ElementDesc();
431: elemField.setFieldName("consumerWindowStates");
432: elemField.setXmlName(new javax.xml.namespace.QName(
433: "urn:oasis:names:tc:wsrp:v1:types",
434: "consumerWindowStates"));
435: elemField.setXmlType(new javax.xml.namespace.QName(
436: "http://www.w3.org/2001/XMLSchema", "string"));
437: elemField.setMinOccurs(0);
438: typeDesc.addFieldDesc(elemField);
439: elemField = new org.apache.axis.description.ElementDesc();
440: elemField.setFieldName("consumerUserScopes");
441: elemField.setXmlName(new javax.xml.namespace.QName(
442: "urn:oasis:names:tc:wsrp:v1:types",
443: "consumerUserScopes"));
444: elemField.setXmlType(new javax.xml.namespace.QName(
445: "http://www.w3.org/2001/XMLSchema", "string"));
446: elemField.setMinOccurs(0);
447: typeDesc.addFieldDesc(elemField);
448: elemField = new org.apache.axis.description.ElementDesc();
449: elemField.setFieldName("customUserProfileData");
450: elemField.setXmlName(new javax.xml.namespace.QName(
451: "urn:oasis:names:tc:wsrp:v1:types",
452: "customUserProfileData"));
453: elemField.setXmlType(new javax.xml.namespace.QName(
454: "http://www.w3.org/2001/XMLSchema", "string"));
455: elemField.setMinOccurs(0);
456: typeDesc.addFieldDesc(elemField);
457: elemField = new org.apache.axis.description.ElementDesc();
458: elemField.setFieldName("registrationProperties");
459: elemField.setXmlName(new javax.xml.namespace.QName(
460: "urn:oasis:names:tc:wsrp:v1:types",
461: "registrationProperties"));
462: elemField.setXmlType(new javax.xml.namespace.QName(
463: "urn:oasis:names:tc:wsrp:v1:types", "Property"));
464: elemField.setMinOccurs(0);
465: typeDesc.addFieldDesc(elemField);
466: elemField = new org.apache.axis.description.ElementDesc();
467: elemField.setFieldName("extensions");
468: elemField.setXmlName(new javax.xml.namespace.QName(
469: "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
470: elemField.setXmlType(new javax.xml.namespace.QName(
471: "urn:oasis:names:tc:wsrp:v1:types", "Extension"));
472: elemField.setMinOccurs(0);
473: typeDesc.addFieldDesc(elemField);
474: }
475:
476: /**
477: * Return type metadata object
478: */
479: public static org.apache.axis.description.TypeDesc getTypeDesc() {
480: return typeDesc;
481: }
482:
483: /**
484: * Get Custom Serializer
485: */
486: public static org.apache.axis.encoding.Serializer getSerializer(
487: java.lang.String mechType, java.lang.Class _javaType,
488: javax.xml.namespace.QName _xmlType) {
489: return new org.apache.axis.encoding.ser.BeanSerializer(
490: _javaType, _xmlType, typeDesc);
491: }
492:
493: /**
494: * Get Custom Deserializer
495: */
496: public static org.apache.axis.encoding.Deserializer getDeserializer(
497: java.lang.String mechType, java.lang.Class _javaType,
498: javax.xml.namespace.QName _xmlType) {
499: return new org.apache.axis.encoding.ser.BeanDeserializer(
500: _javaType, _xmlType, typeDesc);
501: }
502:
503: }
|