View Javadoc

1   /***
2    * ApplicationSoftwareType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC2 Jun 16, 2005 (10:54:53 EDT) WSDL2Java emitter.
6    */
7   
8   package org.globus.mds.glue;
9   
10  public class ApplicationSoftwareType  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private org.globus.mds.glue.RunTimeEnvironmentType[] runTimeEnvironment;
12      private org.apache.axis.message.MessageElement [] _any;
13  
14      public ApplicationSoftwareType() {
15      }
16  
17      public ApplicationSoftwareType(
18             org.apache.axis.message.MessageElement [] _any,
19             org.globus.mds.glue.RunTimeEnvironmentType[] runTimeEnvironment) {
20             this.runTimeEnvironment = runTimeEnvironment;
21             this._any = _any;
22      }
23  
24  
25      /***
26       * Gets the runTimeEnvironment value for this ApplicationSoftwareType.
27       * 
28       * @return runTimeEnvironment
29       */
30      public org.globus.mds.glue.RunTimeEnvironmentType[] getRunTimeEnvironment() {
31          return runTimeEnvironment;
32      }
33  
34  
35      /***
36       * Sets the runTimeEnvironment value for this ApplicationSoftwareType.
37       * 
38       * @param runTimeEnvironment
39       */
40      public void setRunTimeEnvironment(org.globus.mds.glue.RunTimeEnvironmentType[] runTimeEnvironment) {
41          this.runTimeEnvironment = runTimeEnvironment;
42      }
43  
44      public org.globus.mds.glue.RunTimeEnvironmentType getRunTimeEnvironment(int i) {
45          return this.runTimeEnvironment[i];
46      }
47  
48      public void setRunTimeEnvironment(int i, org.globus.mds.glue.RunTimeEnvironmentType _value) {
49          this.runTimeEnvironment[i] = _value;
50      }
51  
52  
53      /***
54       * Gets the _any value for this ApplicationSoftwareType.
55       * 
56       * @return _any
57       */
58      public org.apache.axis.message.MessageElement [] get_any() {
59          return _any;
60      }
61  
62  
63      /***
64       * Sets the _any value for this ApplicationSoftwareType.
65       * 
66       * @param _any
67       */
68      public void set_any(org.apache.axis.message.MessageElement [] _any) {
69          this._any = _any;
70      }
71  
72      private java.lang.Object __equalsCalc = null;
73      public synchronized boolean equals(java.lang.Object obj) {
74          if (!(obj instanceof ApplicationSoftwareType)) return false;
75          ApplicationSoftwareType other = (ApplicationSoftwareType) obj;
76          if (obj == null) return false;
77          if (this == obj) return true;
78          if (__equalsCalc != null) {
79              return (__equalsCalc == obj);
80          }
81          __equalsCalc = obj;
82          boolean _equals;
83          _equals = true && 
84              ((this.runTimeEnvironment==null && other.getRunTimeEnvironment()==null) || 
85               (this.runTimeEnvironment!=null &&
86                java.util.Arrays.equals(this.runTimeEnvironment, other.getRunTimeEnvironment()))) &&
87              ((this._any==null && other.get_any()==null) || 
88               (this._any!=null &&
89                java.util.Arrays.equals(this._any, other.get_any())));
90          __equalsCalc = null;
91          return _equals;
92      }
93  
94      private boolean __hashCodeCalc = false;
95      public synchronized int hashCode() {
96          if (__hashCodeCalc) {
97              return 0;
98          }
99          __hashCodeCalc = true;
100         int _hashCode = 1;
101         if (getRunTimeEnvironment() != null) {
102             for (int i=0;
103                  i<java.lang.reflect.Array.getLength(getRunTimeEnvironment());
104                  i++) {
105                 java.lang.Object obj = java.lang.reflect.Array.get(getRunTimeEnvironment(), i);
106                 if (obj != null &&
107                     !obj.getClass().isArray()) {
108                     _hashCode += obj.hashCode();
109                 }
110             }
111         }
112         if (get_any() != null) {
113             for (int i=0;
114                  i<java.lang.reflect.Array.getLength(get_any());
115                  i++) {
116                 java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
117                 if (obj != null &&
118                     !obj.getClass().isArray()) {
119                     _hashCode += obj.hashCode();
120                 }
121             }
122         }
123         __hashCodeCalc = false;
124         return _hashCode;
125     }
126 
127     // Type metadata
128     private static org.apache.axis.description.TypeDesc typeDesc =
129         new org.apache.axis.description.TypeDesc(ApplicationSoftwareType.class, true);
130 
131     static {
132         typeDesc.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "ApplicationSoftwareType"));
133         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
134         elemField.setFieldName("runTimeEnvironment");
135         elemField.setXmlName(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "RunTimeEnvironment"));
136         elemField.setXmlType(new javax.xml.namespace.QName("http://mds.globus.org/glue/ce/1.1", "RunTimeEnvironmentType"));
137         elemField.setMinOccurs(0);
138         typeDesc.addFieldDesc(elemField);
139     }
140 
141     /***
142      * Return type metadata object
143      */
144     public static org.apache.axis.description.TypeDesc getTypeDesc() {
145         return typeDesc;
146     }
147 
148     /***
149      * Get Custom Serializer
150      */
151     public static org.apache.axis.encoding.Serializer getSerializer(
152            java.lang.String mechType, 
153            java.lang.Class _javaType,  
154            javax.xml.namespace.QName _xmlType) {
155         return 
156           new  org.apache.axis.encoding.ser.BeanSerializer(
157             _javaType, _xmlType, typeDesc);
158     }
159 
160     /***
161      * Get Custom Deserializer
162      */
163     public static org.apache.axis.encoding.Deserializer getDeserializer(
164            java.lang.String mechType, 
165            java.lang.Class _javaType,  
166            javax.xml.namespace.QName _xmlType) {
167         return 
168           new  org.apache.axis.encoding.ser.BeanDeserializer(
169             _javaType, _xmlType, typeDesc);
170     }
171 
172 }