1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class ReleaseSessions implements java.io.Serializable {
11 private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12 private java.lang.String[] sessionIDs;
13
14 public ReleaseSessions() {
15 }
16
17 public ReleaseSessions(
18 oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
19 java.lang.String[] sessionIDs) {
20 this.registrationContext = registrationContext;
21 this.sessionIDs = sessionIDs;
22 }
23
24
25
30 public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
31 return registrationContext;
32 }
33
34
35
40 public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
41 this.registrationContext = registrationContext;
42 }
43
44
45
50 public java.lang.String[] getSessionIDs() {
51 return sessionIDs;
52 }
53
54
55
60 public void setSessionIDs(java.lang.String[] sessionIDs) {
61 this.sessionIDs = sessionIDs;
62 }
63
64 public java.lang.String getSessionIDs(int i) {
65 return this.sessionIDs[i];
66 }
67
68 public void setSessionIDs(int i, java.lang.String _value) {
69 this.sessionIDs[i] = _value;
70 }
71
72 private java.lang.Object __equalsCalc = null;
73 public synchronized boolean equals(java.lang.Object obj) {
74 if (!(obj instanceof ReleaseSessions)) return false;
75 ReleaseSessions other = (ReleaseSessions) obj;
76 if (obj == null) return false;
77 if (this == obj) return true;
78 if (__equalsCalc != null) {
79 return (__equalsCalc == obj);
80 }
81 __equalsCalc = obj;
82 boolean _equals;
83 _equals = true &&
84 ((this.registrationContext==null && other.getRegistrationContext()==null) ||
85 (this.registrationContext!=null &&
86 this.registrationContext.equals(other.getRegistrationContext()))) &&
87 ((this.sessionIDs==null && other.getSessionIDs()==null) ||
88 (this.sessionIDs!=null &&
89 java.util.Arrays.equals(this.sessionIDs, other.getSessionIDs())));
90 __equalsCalc = null;
91 return _equals;
92 }
93
94 private boolean __hashCodeCalc = false;
95 public synchronized int hashCode() {
96 if (__hashCodeCalc) {
97 return 0;
98 }
99 __hashCodeCalc = true;
100 int _hashCode = 1;
101 if (getRegistrationContext() != null) {
102 _hashCode += getRegistrationContext().hashCode();
103 }
104 if (getSessionIDs() != null) {
105 for (int i=0;
106 i<java.lang.reflect.Array.getLength(getSessionIDs());
107 i++) {
108 java.lang.Object obj = java.lang.reflect.Array.get(getSessionIDs(), i);
109 if (obj != null &&
110 !obj.getClass().isArray()) {
111 _hashCode += obj.hashCode();
112 }
113 }
114 }
115 __hashCodeCalc = false;
116 return _hashCode;
117 }
118
119 private static org.apache.axis.description.TypeDesc typeDesc =
121 new org.apache.axis.description.TypeDesc(ReleaseSessions.class, true);
122
123 static {
124 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">releaseSessions"));
125 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
126 elemField.setFieldName("registrationContext");
127 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
128 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
129 elemField.setNillable(true);
130 typeDesc.addFieldDesc(elemField);
131 elemField = new org.apache.axis.description.ElementDesc();
132 elemField.setFieldName("sessionIDs");
133 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "sessionIDs"));
134 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
135 typeDesc.addFieldDesc(elemField);
136 }
137
138
141 public static org.apache.axis.description.TypeDesc getTypeDesc() {
142 return typeDesc;
143 }
144
145
148 public static org.apache.axis.encoding.Serializer getSerializer(
149 java.lang.String mechType,
150 java.lang.Class _javaType,
151 javax.xml.namespace.QName _xmlType) {
152 return
153 new org.apache.axis.encoding.ser.BeanSerializer(
154 _javaType, _xmlType, typeDesc);
155 }
156
157
160 public static org.apache.axis.encoding.Deserializer getDeserializer(
161 java.lang.String mechType,
162 java.lang.Class _javaType,
163 javax.xml.namespace.QName _xmlType) {
164 return
165 new org.apache.axis.encoding.ser.BeanDeserializer(
166 _javaType, _xmlType, typeDesc);
167 }
168
169 }
170