001: /**
002: * Event.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
006: */package org.enhydra.shark.asap.types;
007:
008: public class Event implements java.io.Serializable {
009: private java.util.Calendar time;
010:
011: private org.enhydra.shark.asap.types.EventEventType eventType;
012:
013: private org.apache.axis.types.URI sourceKey;
014:
015: private java.lang.Object details;
016:
017: private org.enhydra.shark.asap.types.StateType oldState;
018:
019: private org.enhydra.shark.asap.types.StateType newState;
020:
021: public Event() {
022: }
023:
024: public Event(java.util.Calendar time,
025: org.enhydra.shark.asap.types.EventEventType eventType,
026: org.apache.axis.types.URI sourceKey,
027: java.lang.Object details,
028: org.enhydra.shark.asap.types.StateType oldState,
029: org.enhydra.shark.asap.types.StateType newState) {
030: this .time = time;
031: this .eventType = eventType;
032: this .sourceKey = sourceKey;
033: this .details = details;
034: this .oldState = oldState;
035: this .newState = newState;
036: }
037:
038: /**
039: * Gets the time value for this Event.
040: *
041: * @return time
042: */
043: public java.util.Calendar getTime() {
044: return time;
045: }
046:
047: /**
048: * Sets the time value for this Event.
049: *
050: * @param time
051: */
052: public void setTime(java.util.Calendar time) {
053: this .time = time;
054: }
055:
056: /**
057: * Gets the eventType value for this Event.
058: *
059: * @return eventType
060: */
061: public org.enhydra.shark.asap.types.EventEventType getEventType() {
062: return eventType;
063: }
064:
065: /**
066: * Sets the eventType value for this Event.
067: *
068: * @param eventType
069: */
070: public void setEventType(
071: org.enhydra.shark.asap.types.EventEventType eventType) {
072: this .eventType = eventType;
073: }
074:
075: /**
076: * Gets the sourceKey value for this Event.
077: *
078: * @return sourceKey
079: */
080: public org.apache.axis.types.URI getSourceKey() {
081: return sourceKey;
082: }
083:
084: /**
085: * Sets the sourceKey value for this Event.
086: *
087: * @param sourceKey
088: */
089: public void setSourceKey(org.apache.axis.types.URI sourceKey) {
090: this .sourceKey = sourceKey;
091: }
092:
093: /**
094: * Gets the details value for this Event.
095: *
096: * @return details
097: */
098: public java.lang.Object getDetails() {
099: return details;
100: }
101:
102: /**
103: * Sets the details value for this Event.
104: *
105: * @param details
106: */
107: public void setDetails(java.lang.Object details) {
108: this .details = details;
109: }
110:
111: /**
112: * Gets the oldState value for this Event.
113: *
114: * @return oldState
115: */
116: public org.enhydra.shark.asap.types.StateType getOldState() {
117: return oldState;
118: }
119:
120: /**
121: * Sets the oldState value for this Event.
122: *
123: * @param oldState
124: */
125: public void setOldState(
126: org.enhydra.shark.asap.types.StateType oldState) {
127: this .oldState = oldState;
128: }
129:
130: /**
131: * Gets the newState value for this Event.
132: *
133: * @return newState
134: */
135: public org.enhydra.shark.asap.types.StateType getNewState() {
136: return newState;
137: }
138:
139: /**
140: * Sets the newState value for this Event.
141: *
142: * @param newState
143: */
144: public void setNewState(
145: org.enhydra.shark.asap.types.StateType newState) {
146: this .newState = newState;
147: }
148:
149: private java.lang.Object __equalsCalc = null;
150:
151: public synchronized boolean equals(java.lang.Object obj) {
152: if (!(obj instanceof Event))
153: return false;
154: Event other = (Event) obj;
155: if (obj == null)
156: return false;
157: if (this == obj)
158: return true;
159: if (__equalsCalc != null) {
160: return (__equalsCalc == obj);
161: }
162: __equalsCalc = obj;
163: boolean _equals;
164: _equals = true
165: && ((this .time == null && other.getTime() == null) || (this .time != null && this .time
166: .equals(other.getTime())))
167: && ((this .eventType == null && other.getEventType() == null) || (this .eventType != null && this .eventType
168: .equals(other.getEventType())))
169: && ((this .sourceKey == null && other.getSourceKey() == null) || (this .sourceKey != null && this .sourceKey
170: .equals(other.getSourceKey())))
171: && ((this .details == null && other.getDetails() == null) || (this .details != null && this .details
172: .equals(other.getDetails())))
173: && ((this .oldState == null && other.getOldState() == null) || (this .oldState != null && this .oldState
174: .equals(other.getOldState())))
175: && ((this .newState == null && other.getNewState() == null) || (this .newState != null && this .newState
176: .equals(other.getNewState())));
177: __equalsCalc = null;
178: return _equals;
179: }
180:
181: private boolean __hashCodeCalc = false;
182:
183: public synchronized int hashCode() {
184: if (__hashCodeCalc) {
185: return 0;
186: }
187: __hashCodeCalc = true;
188: int _hashCode = 1;
189: if (getTime() != null) {
190: _hashCode += getTime().hashCode();
191: }
192: if (getEventType() != null) {
193: _hashCode += getEventType().hashCode();
194: }
195: if (getSourceKey() != null) {
196: _hashCode += getSourceKey().hashCode();
197: }
198: if (getDetails() != null) {
199: _hashCode += getDetails().hashCode();
200: }
201: if (getOldState() != null) {
202: _hashCode += getOldState().hashCode();
203: }
204: if (getNewState() != null) {
205: _hashCode += getNewState().hashCode();
206: }
207: __hashCodeCalc = false;
208: return _hashCode;
209: }
210:
211: // Type metadata
212: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
213: Event.class, true);
214:
215: static {
216: typeDesc
217: .setXmlType(new javax.xml.namespace.QName(
218: "http://www.oasis-open.org/asap/0.9/asap.xsd",
219: ">Event"));
220: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
221: elemField.setFieldName("time");
222: elemField.setXmlName(new javax.xml.namespace.QName(
223: "http://www.oasis-open.org/asap/0.9/asap.xsd", "Time"));
224: elemField.setXmlType(new javax.xml.namespace.QName(
225: "http://www.w3.org/2001/XMLSchema", "dateTime"));
226: elemField.setNillable(false);
227: typeDesc.addFieldDesc(elemField);
228: elemField = new org.apache.axis.description.ElementDesc();
229: elemField.setFieldName("eventType");
230: elemField.setXmlName(new javax.xml.namespace.QName(
231: "http://www.oasis-open.org/asap/0.9/asap.xsd",
232: "EventType"));
233: elemField.setXmlType(new javax.xml.namespace.QName(
234: "http://www.oasis-open.org/asap/0.9/asap.xsd",
235: ">>Event>EventType"));
236: elemField.setNillable(false);
237: typeDesc.addFieldDesc(elemField);
238: elemField = new org.apache.axis.description.ElementDesc();
239: elemField.setFieldName("sourceKey");
240: elemField.setXmlName(new javax.xml.namespace.QName(
241: "http://www.oasis-open.org/asap/0.9/asap.xsd",
242: "SourceKey"));
243: elemField.setXmlType(new javax.xml.namespace.QName(
244: "http://www.w3.org/2001/XMLSchema", "anyURI"));
245: elemField.setNillable(false);
246: typeDesc.addFieldDesc(elemField);
247: elemField = new org.apache.axis.description.ElementDesc();
248: elemField.setFieldName("details");
249: elemField.setXmlName(new javax.xml.namespace.QName(
250: "http://www.oasis-open.org/asap/0.9/asap.xsd",
251: "Details"));
252: elemField.setXmlType(new javax.xml.namespace.QName(
253: "http://www.w3.org/2001/XMLSchema", "anyType"));
254: elemField.setNillable(false);
255: typeDesc.addFieldDesc(elemField);
256: elemField = new org.apache.axis.description.ElementDesc();
257: elemField.setFieldName("oldState");
258: elemField.setXmlName(new javax.xml.namespace.QName(
259: "http://www.oasis-open.org/asap/0.9/asap.xsd",
260: "OldState"));
261: elemField.setXmlType(new javax.xml.namespace.QName(
262: "http://www.oasis-open.org/asap/0.9/asap.xsd",
263: "stateType"));
264: elemField.setNillable(false);
265: typeDesc.addFieldDesc(elemField);
266: elemField = new org.apache.axis.description.ElementDesc();
267: elemField.setFieldName("newState");
268: elemField.setXmlName(new javax.xml.namespace.QName(
269: "http://www.oasis-open.org/asap/0.9/asap.xsd",
270: "NewState"));
271: elemField.setXmlType(new javax.xml.namespace.QName(
272: "http://www.oasis-open.org/asap/0.9/asap.xsd",
273: "stateType"));
274: elemField.setNillable(false);
275: typeDesc.addFieldDesc(elemField);
276: }
277:
278: /**
279: * Return type metadata object
280: */
281: public static org.apache.axis.description.TypeDesc getTypeDesc() {
282: return typeDesc;
283: }
284:
285: /**
286: * Get Custom Serializer
287: */
288: public static org.apache.axis.encoding.Serializer getSerializer(
289: java.lang.String mechType, java.lang.Class _javaType,
290: javax.xml.namespace.QName _xmlType) {
291: return new org.enhydra.shark.asap.BeanSerializerShark(
292: _javaType, _xmlType, typeDesc);
293: }
294:
295: /**
296: * Get Custom Deserializer
297: */
298: public static org.apache.axis.encoding.Deserializer getDeserializer(
299: java.lang.String mechType, java.lang.Class _javaType,
300: javax.xml.namespace.QName _xmlType) {
301: return new org.apache.axis.encoding.ser.BeanDeserializer(
302: _javaType, _xmlType, typeDesc);
303: }
304:
305: }
|