View Javadoc

1   /**
2    * TerminateActivityResponseType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.ggf.schemas.bes.x2006.x08.besFactory;
9   
10  public class TerminateActivityResponseType  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private fr.in2p3.jsaga.generated.org.w3.x2005.x08.addressing.EndpointReferenceType activityIdentifier;
12  
13      private boolean cancelled;
14  
15      private org.xmlsoap.schemas.soap.envelope.Fault fault;
16  
17      private org.apache.axis.message.MessageElement [] _any;
18  
19      public TerminateActivityResponseType() {
20      }
21  
22      public TerminateActivityResponseType(
23             fr.in2p3.jsaga.generated.org.w3.x2005.x08.addressing.EndpointReferenceType activityIdentifier,
24             boolean cancelled,
25             org.xmlsoap.schemas.soap.envelope.Fault fault,
26             org.apache.axis.message.MessageElement [] _any) {
27             this.activityIdentifier = activityIdentifier;
28             this.cancelled = cancelled;
29             this.fault = fault;
30             this._any = _any;
31      }
32  
33  
34      /**
35       * Gets the activityIdentifier value for this TerminateActivityResponseType.
36       * 
37       * @return activityIdentifier
38       */
39      public fr.in2p3.jsaga.generated.org.w3.x2005.x08.addressing.EndpointReferenceType getActivityIdentifier() {
40          return activityIdentifier;
41      }
42  
43  
44      /**
45       * Sets the activityIdentifier value for this TerminateActivityResponseType.
46       * 
47       * @param activityIdentifier
48       */
49      public void setActivityIdentifier(fr.in2p3.jsaga.generated.org.w3.x2005.x08.addressing.EndpointReferenceType activityIdentifier) {
50          this.activityIdentifier = activityIdentifier;
51      }
52  
53  
54      /**
55       * Gets the cancelled value for this TerminateActivityResponseType.
56       * 
57       * @return cancelled
58       */
59      public boolean isCancelled() {
60          return cancelled;
61      }
62  
63  
64      /**
65       * Sets the cancelled value for this TerminateActivityResponseType.
66       * 
67       * @param cancelled
68       */
69      public void setCancelled(boolean cancelled) {
70          this.cancelled = cancelled;
71      }
72  
73  
74      /**
75       * Gets the fault value for this TerminateActivityResponseType.
76       * 
77       * @return fault
78       */
79      public org.xmlsoap.schemas.soap.envelope.Fault getFault() {
80          return fault;
81      }
82  
83  
84      /**
85       * Sets the fault value for this TerminateActivityResponseType.
86       * 
87       * @param fault
88       */
89      public void setFault(org.xmlsoap.schemas.soap.envelope.Fault fault) {
90          this.fault = fault;
91      }
92  
93  
94      /**
95       * Gets the _any value for this TerminateActivityResponseType.
96       * 
97       * @return _any
98       */
99      public org.apache.axis.message.MessageElement [] get_any() {
100         return _any;
101     }
102 
103 
104     /**
105      * Sets the _any value for this TerminateActivityResponseType.
106      * 
107      * @param _any
108      */
109     public void set_any(org.apache.axis.message.MessageElement [] _any) {
110         this._any = _any;
111     }
112 
113     private java.lang.Object __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object obj) {
115         if (!(obj instanceof TerminateActivityResponseType)) return false;
116         TerminateActivityResponseType other = (TerminateActivityResponseType) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true && 
125             ((this.activityIdentifier==null && other.getActivityIdentifier()==null) || 
126              (this.activityIdentifier!=null &&
127               this.activityIdentifier.equals(other.getActivityIdentifier()))) &&
128             this.cancelled == other.isCancelled() &&
129             ((this.fault==null && other.getFault()==null) || 
130              (this.fault!=null &&
131               this.fault.equals(other.getFault()))) &&
132             ((this._any==null && other.get_any()==null) || 
133              (this._any!=null &&
134               java.util.Arrays.equals(this._any, other.get_any())));
135         __equalsCalc = null;
136         return _equals;
137     }
138 
139     private boolean __hashCodeCalc = false;
140     public synchronized int hashCode() {
141         if (__hashCodeCalc) {
142             return 0;
143         }
144         __hashCodeCalc = true;
145         int _hashCode = 1;
146         if (getActivityIdentifier() != null) {
147             _hashCode += getActivityIdentifier().hashCode();
148         }
149         _hashCode += (isCancelled() ? Boolean.TRUE : Boolean.FALSE).hashCode();
150         if (getFault() != null) {
151             _hashCode += getFault().hashCode();
152         }
153         if (get_any() != null) {
154             for (int i=0;
155                  i<java.lang.reflect.Array.getLength(get_any());
156                  i++) {
157                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
158                 if (obj != null &&
159                     !obj.getClass().isArray()) {
160                     _hashCode += obj.hashCode();
161                 }
162             }
163         }
164         __hashCodeCalc = false;
165         return _hashCode;
166     }
167 
168     // Type metadata
169     private static org.apache.axis.description.TypeDesc typeDesc =
170         new org.apache.axis.description.TypeDesc(TerminateActivityResponseType.class, true);
171 
172     static {
173         typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "TerminateActivityResponseType"));
174         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
175         elemField.setFieldName("activityIdentifier");
176         elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "ActivityIdentifier"));
177         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2005/08/addressing", "EndpointReferenceType"));
178         elemField.setNillable(false);
179         typeDesc.addFieldDesc(elemField);
180         elemField = new org.apache.axis.description.ElementDesc();
181         elemField.setFieldName("cancelled");
182         elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "Cancelled"));
183         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
184         elemField.setNillable(false);
185         typeDesc.addFieldDesc(elemField);
186         elemField = new org.apache.axis.description.ElementDesc();
187         elemField.setFieldName("fault");
188         elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "Fault"));
189         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/envelope/", "Fault"));
190         elemField.setMinOccurs(0);
191         elemField.setNillable(false);
192         typeDesc.addFieldDesc(elemField);
193     }
194 
195     /**
196      * Return type metadata object
197      */
198     public static org.apache.axis.description.TypeDesc getTypeDesc() {
199         return typeDesc;
200     }
201 
202     /**
203      * Get Custom Serializer
204      */
205     public static org.apache.axis.encoding.Serializer getSerializer(
206            java.lang.String mechType, 
207            java.lang.Class _javaType,  
208            javax.xml.namespace.QName _xmlType) {
209         return 
210           new  org.apache.axis.encoding.ser.BeanSerializer(
211             _javaType, _xmlType, typeDesc);
212     }
213 
214     /**
215      * Get Custom Deserializer
216      */
217     public static org.apache.axis.encoding.Deserializer getDeserializer(
218            java.lang.String mechType, 
219            java.lang.Class _javaType,  
220            javax.xml.namespace.QName _xmlType) {
221         return 
222           new  org.apache.axis.encoding.ser.BeanDeserializer(
223             _javaType, _xmlType, typeDesc);
224     }
225 
226 }