001: /**
002: * ReleaseSessions.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 ReleaseSessions implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
010: private java.lang.String[] sessionIDs;
011:
012: public ReleaseSessions() {
013: }
014:
015: public ReleaseSessions(
016: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
017: java.lang.String[] sessionIDs) {
018: this .registrationContext = registrationContext;
019: this .sessionIDs = sessionIDs;
020: }
021:
022: /**
023: * Gets the registrationContext value for this ReleaseSessions.
024: *
025: * @return registrationContext
026: */
027: public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
028: return registrationContext;
029: }
030:
031: /**
032: * Sets the registrationContext value for this ReleaseSessions.
033: *
034: * @param registrationContext
035: */
036: public void setRegistrationContext(
037: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
038: this .registrationContext = registrationContext;
039: }
040:
041: /**
042: * Gets the sessionIDs value for this ReleaseSessions.
043: *
044: * @return sessionIDs
045: */
046: public java.lang.String[] getSessionIDs() {
047: return sessionIDs;
048: }
049:
050: /**
051: * Sets the sessionIDs value for this ReleaseSessions.
052: *
053: * @param sessionIDs
054: */
055: public void setSessionIDs(java.lang.String[] sessionIDs) {
056: this .sessionIDs = sessionIDs;
057: }
058:
059: public java.lang.String getSessionIDs(int i) {
060: return this .sessionIDs[i];
061: }
062:
063: public void setSessionIDs(int i, java.lang.String _value) {
064: this .sessionIDs[i] = _value;
065: }
066:
067: private java.lang.Object __equalsCalc = null;
068:
069: public synchronized boolean equals(java.lang.Object obj) {
070: if (!(obj instanceof ReleaseSessions))
071: return false;
072: ReleaseSessions other = (ReleaseSessions) obj;
073: if (obj == null)
074: return false;
075: if (this == obj)
076: return true;
077: if (__equalsCalc != null) {
078: return (__equalsCalc == obj);
079: }
080: __equalsCalc = obj;
081: boolean _equals;
082: _equals = true
083: && ((this .registrationContext == null && other
084: .getRegistrationContext() == null) || (this .registrationContext != null && this .registrationContext
085: .equals(other.getRegistrationContext())))
086: && ((this .sessionIDs == null && other.getSessionIDs() == null) || (this .sessionIDs != null && java.util.Arrays
087: .equals(this .sessionIDs, other.getSessionIDs())));
088: __equalsCalc = null;
089: return _equals;
090: }
091:
092: private boolean __hashCodeCalc = false;
093:
094: public synchronized int hashCode() {
095: if (__hashCodeCalc) {
096: return 0;
097: }
098: __hashCodeCalc = true;
099: int _hashCode = 1;
100: if (getRegistrationContext() != null) {
101: _hashCode += getRegistrationContext().hashCode();
102: }
103: if (getSessionIDs() != null) {
104: for (int i = 0; i < java.lang.reflect.Array
105: .getLength(getSessionIDs()); i++) {
106: java.lang.Object obj = java.lang.reflect.Array.get(
107: getSessionIDs(), i);
108: if (obj != null && !obj.getClass().isArray()) {
109: _hashCode += obj.hashCode();
110: }
111: }
112: }
113: __hashCodeCalc = false;
114: return _hashCode;
115: }
116:
117: // Type metadata
118: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
119: ReleaseSessions.class, true);
120:
121: static {
122: typeDesc
123: .setXmlType(new javax.xml.namespace.QName(
124: "urn:oasis:names:tc:wsrp:v1:types",
125: ">releaseSessions"));
126: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
127: elemField.setFieldName("registrationContext");
128: elemField.setXmlName(new javax.xml.namespace.QName(
129: "urn:oasis:names:tc:wsrp:v1:types",
130: "registrationContext"));
131: elemField.setXmlType(new javax.xml.namespace.QName(
132: "urn:oasis:names:tc:wsrp:v1:types",
133: "RegistrationContext"));
134: elemField.setNillable(true);
135: typeDesc.addFieldDesc(elemField);
136: elemField = new org.apache.axis.description.ElementDesc();
137: elemField.setFieldName("sessionIDs");
138: elemField.setXmlName(new javax.xml.namespace.QName(
139: "urn:oasis:names:tc:wsrp:v1:types", "sessionIDs"));
140: elemField.setXmlType(new javax.xml.namespace.QName(
141: "http://www.w3.org/2001/XMLSchema", "string"));
142: typeDesc.addFieldDesc(elemField);
143: }
144:
145: /**
146: * Return type metadata object
147: */
148: public static org.apache.axis.description.TypeDesc getTypeDesc() {
149: return typeDesc;
150: }
151:
152: /**
153: * Get Custom Serializer
154: */
155: public static org.apache.axis.encoding.Serializer getSerializer(
156: java.lang.String mechType, java.lang.Class _javaType,
157: javax.xml.namespace.QName _xmlType) {
158: return new org.apache.axis.encoding.ser.BeanSerializer(
159: _javaType, _xmlType, typeDesc);
160: }
161:
162: /**
163: * Get Custom Deserializer
164: */
165: public static org.apache.axis.encoding.Deserializer getDeserializer(
166: java.lang.String mechType, java.lang.Class _javaType,
167: javax.xml.namespace.QName _xmlType) {
168: return new org.apache.axis.encoding.ser.BeanDeserializer(
169: _javaType, _xmlType, typeDesc);
170: }
171:
172: }
|