View Javadoc

1   /***
2    * MessageType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    */
7   
8   package org.astrogrid.jes.types.v1.cea.axis;
9   
10  public class MessageType  implements java.io.Serializable {
11      private java.lang.String content;
12      private java.lang.String source;
13      private java.util.Calendar timestamp;
14      private org.astrogrid.jes.types.v1.cea.axis.LogLevel level;
15      private org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase phase;
16  
17      public MessageType() {
18      }
19  
20      public java.lang.String getContent() {
21          return content;
22      }
23  
24      public void setContent(java.lang.String content) {
25          this.content = content;
26      }
27  
28      public java.lang.String getSource() {
29          return source;
30      }
31  
32      public void setSource(java.lang.String source) {
33          this.source = source;
34      }
35  
36      public java.util.Calendar getTimestamp() {
37          return timestamp;
38      }
39  
40      public void setTimestamp(java.util.Calendar timestamp) {
41          this.timestamp = timestamp;
42      }
43  
44      public org.astrogrid.jes.types.v1.cea.axis.LogLevel getLevel() {
45          return level;
46      }
47  
48      public void setLevel(org.astrogrid.jes.types.v1.cea.axis.LogLevel level) {
49          this.level = level;
50      }
51  
52      public org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase getPhase() {
53          return phase;
54      }
55  
56      public void setPhase(org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase phase) {
57          this.phase = phase;
58      }
59  
60      private java.lang.Object __equalsCalc = null;
61      public synchronized boolean equals(java.lang.Object obj) {
62          if (!(obj instanceof MessageType)) return false;
63          MessageType other = (MessageType) obj;
64          if (obj == null) return false;
65          if (this == obj) return true;
66          if (__equalsCalc != null) {
67              return (__equalsCalc == obj);
68          }
69          __equalsCalc = obj;
70          boolean _equals;
71          _equals = true && 
72              ((this.content==null && other.getContent()==null) || 
73               (this.content!=null &&
74                this.content.equals(other.getContent()))) &&
75              ((this.source==null && other.getSource()==null) || 
76               (this.source!=null &&
77                this.source.equals(other.getSource()))) &&
78              ((this.timestamp==null && other.getTimestamp()==null) || 
79               (this.timestamp!=null &&
80                this.timestamp.equals(other.getTimestamp()))) &&
81              ((this.level==null && other.getLevel()==null) || 
82               (this.level!=null &&
83                this.level.equals(other.getLevel()))) &&
84              ((this.phase==null && other.getPhase()==null) || 
85               (this.phase!=null &&
86                this.phase.equals(other.getPhase())));
87          __equalsCalc = null;
88          return _equals;
89      }
90  
91      private boolean __hashCodeCalc = false;
92      public synchronized int hashCode() {
93          if (__hashCodeCalc) {
94              return 0;
95          }
96          __hashCodeCalc = true;
97          int _hashCode = 1;
98          if (getContent() != null) {
99              _hashCode += getContent().hashCode();
100         }
101         if (getSource() != null) {
102             _hashCode += getSource().hashCode();
103         }
104         if (getTimestamp() != null) {
105             _hashCode += getTimestamp().hashCode();
106         }
107         if (getLevel() != null) {
108             _hashCode += getLevel().hashCode();
109         }
110         if (getPhase() != null) {
111             _hashCode += getPhase().hashCode();
112         }
113         __hashCodeCalc = false;
114         return _hashCode;
115     }
116 
117     // Type metadata
118     private static org.apache.axis.description.TypeDesc typeDesc =
119         new org.apache.axis.description.TypeDesc(MessageType.class);
120 
121     static {
122         typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message-type"));
123         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
124         elemField.setFieldName("content");
125         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "content"));
126         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
127         elemField.setMinOccurs(0);
128         typeDesc.addFieldDesc(elemField);
129         elemField = new org.apache.axis.description.ElementDesc();
130         elemField.setFieldName("source");
131         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "source"));
132         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
133         elemField.setMinOccurs(0);
134         typeDesc.addFieldDesc(elemField);
135         elemField = new org.apache.axis.description.ElementDesc();
136         elemField.setFieldName("timestamp");
137         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "timestamp"));
138         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
139         elemField.setMinOccurs(0);
140         typeDesc.addFieldDesc(elemField);
141         elemField = new org.apache.axis.description.ElementDesc();
142         elemField.setFieldName("level");
143         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "level"));
144         elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "log-level"));
145         elemField.setMinOccurs(0);
146         typeDesc.addFieldDesc(elemField);
147         elemField = new org.apache.axis.description.ElementDesc();
148         elemField.setFieldName("phase");
149         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "phase"));
150         elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "execution-phase"));
151         elemField.setMinOccurs(0);
152         typeDesc.addFieldDesc(elemField);
153     }
154 
155     /***
156      * Return type metadata object
157      */
158     public static org.apache.axis.description.TypeDesc getTypeDesc() {
159         return typeDesc;
160     }
161 
162     /***
163      * Get Custom Serializer
164      */
165     public static org.apache.axis.encoding.Serializer getSerializer(
166            java.lang.String mechType, 
167            java.lang.Class _javaType,  
168            javax.xml.namespace.QName _xmlType) {
169         return 
170           new  org.apache.axis.encoding.ser.BeanSerializer(
171             _javaType, _xmlType, typeDesc);
172     }
173 
174     /***
175      * Get Custom Deserializer
176      */
177     public static org.apache.axis.encoding.Deserializer getDeserializer(
178            java.lang.String mechType, 
179            java.lang.Class _javaType,  
180            javax.xml.namespace.QName _xmlType) {
181         return 
182           new  org.apache.axis.encoding.ser.BeanDeserializer(
183             _javaType, _xmlType, typeDesc);
184     }
185 
186 }