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