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