View Javadoc

1   /**
2    * CreateActivityType.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.nordugrid.schemas.besFactory;
9   
10  public class CreateActivityType  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private org.nordugrid.schemas.besFactory.ActivityDocumentType activityDocument;
12  
13      private org.apache.axis.message.MessageElement [] _any;
14  
15      public CreateActivityType() {
16      }
17  
18      public CreateActivityType(
19             org.nordugrid.schemas.besFactory.ActivityDocumentType activityDocument,
20             org.apache.axis.message.MessageElement [] _any) {
21             this.activityDocument = activityDocument;
22             this._any = _any;
23      }
24  
25  
26      /**
27       * Gets the activityDocument value for this CreateActivityType.
28       * 
29       * @return activityDocument
30       */
31      public org.nordugrid.schemas.besFactory.ActivityDocumentType getActivityDocument() {
32          return activityDocument;
33      }
34  
35  
36      /**
37       * Sets the activityDocument value for this CreateActivityType.
38       * 
39       * @param activityDocument
40       */
41      public void setActivityDocument(org.nordugrid.schemas.besFactory.ActivityDocumentType activityDocument) {
42          this.activityDocument = activityDocument;
43      }
44  
45  
46      /**
47       * Gets the _any value for this CreateActivityType.
48       * 
49       * @return _any
50       */
51      public org.apache.axis.message.MessageElement [] get_any() {
52          return _any;
53      }
54  
55  
56      /**
57       * Sets the _any value for this CreateActivityType.
58       * 
59       * @param _any
60       */
61      public void set_any(org.apache.axis.message.MessageElement [] _any) {
62          this._any = _any;
63      }
64  
65      private java.lang.Object __equalsCalc = null;
66      public synchronized boolean equals(java.lang.Object obj) {
67          if (!(obj instanceof CreateActivityType)) return false;
68          CreateActivityType other = (CreateActivityType) obj;
69          if (obj == null) return false;
70          if (this == obj) return true;
71          if (__equalsCalc != null) {
72              return (__equalsCalc == obj);
73          }
74          __equalsCalc = obj;
75          boolean _equals;
76          _equals = true && 
77              ((this.activityDocument==null && other.getActivityDocument()==null) || 
78               (this.activityDocument!=null &&
79                this.activityDocument.equals(other.getActivityDocument()))) &&
80              ((this._any==null && other.get_any()==null) || 
81               (this._any!=null &&
82                java.util.Arrays.equals(this._any, other.get_any())));
83          __equalsCalc = null;
84          return _equals;
85      }
86  
87      private boolean __hashCodeCalc = false;
88      public synchronized int hashCode() {
89          if (__hashCodeCalc) {
90              return 0;
91          }
92          __hashCodeCalc = true;
93          int _hashCode = 1;
94          if (getActivityDocument() != null) {
95              _hashCode += getActivityDocument().hashCode();
96          }
97          if (get_any() != null) {
98              for (int i=0;
99                   i<java.lang.reflect.Array.getLength(get_any());
100                  i++) {
101                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
102                 if (obj != null &&
103                     !obj.getClass().isArray()) {
104                     _hashCode += obj.hashCode();
105                 }
106             }
107         }
108         __hashCodeCalc = false;
109         return _hashCode;
110     }
111 
112     // Type metadata
113     private static org.apache.axis.description.TypeDesc typeDesc =
114         new org.apache.axis.description.TypeDesc(CreateActivityType.class, true);
115 
116     static {
117         typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "CreateActivityType"));
118         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
119         elemField.setFieldName("activityDocument");
120         elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "ActivityDocument"));
121         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.ggf.org/bes/2006/08/bes-factory", "ActivityDocumentType"));
122         elemField.setNillable(false);
123         typeDesc.addFieldDesc(elemField);
124     }
125 
126     /**
127      * Return type metadata object
128      */
129     public static org.apache.axis.description.TypeDesc getTypeDesc() {
130         return typeDesc;
131     }
132 
133     /**
134      * Get Custom Serializer
135      */
136     public static org.apache.axis.encoding.Serializer getSerializer(
137            java.lang.String mechType, 
138            java.lang.Class _javaType,  
139            javax.xml.namespace.QName _xmlType) {
140         return 
141           new  org.apache.axis.encoding.ser.BeanSerializer(
142             _javaType, _xmlType, typeDesc);
143     }
144 
145     /**
146      * Get Custom Deserializer
147      */
148     public static org.apache.axis.encoding.Deserializer getDeserializer(
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.BeanDeserializer(
154             _javaType, _xmlType, typeDesc);
155     }
156 
157 }