/**
* NotificationSpecification.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.amazonaws.mturk.requester;
public class NotificationSpecification implements java.io.Serializable {
private java.lang.String destination;
private com.amazonaws.mturk.requester.NotificationTransport transport;
private java.lang.String version;
private com.amazonaws.mturk.requester.EventType[] eventType;
public NotificationSpecification() {
}
public NotificationSpecification(
java.lang.String destination,
com.amazonaws.mturk.requester.NotificationTransport transport,
java.lang.String version,
com.amazonaws.mturk.requester.EventType[] eventType) {
this.destination = destination;
this.transport = transport;
this.version = version;
this.eventType = eventType;
}
/**
* Gets the destination value for this NotificationSpecification.
*
* @return destination
*/
public java.lang.String getDestination() {
return destination;
}
/**
* Sets the destination value for this NotificationSpecification.
*
* @param destination
*/
public void setDestination(java.lang.String destination) {
this.destination = destination;
}
/**
* Gets the transport value for this NotificationSpecification.
*
* @return transport
*/
public com.amazonaws.mturk.requester.NotificationTransport getTransport() {
return transport;
}
/**
* Sets the transport value for this NotificationSpecification.
*
* @param transport
*/
public void setTransport(com.amazonaws.mturk.requester.NotificationTransport transport) {
this.transport = transport;
}
/**
* Gets the version value for this NotificationSpecification.
*
* @return version
*/
public java.lang.String getVersion() {
return version;
}
/**
* Sets the version value for this NotificationSpecification.
*
* @param version
*/
public void setVersion(java.lang.String version) {
this.version = version;
}
/**
* Gets the eventType value for this NotificationSpecification.
*
* @return eventType
*/
public com.amazonaws.mturk.requester.EventType[] getEventType() {
return eventType;
}
/**
* Sets the eventType value for this NotificationSpecification.
*
* @param eventType
*/
public void setEventType(com.amazonaws.mturk.requester.EventType[] eventType) {
this.eventType = eventType;
}
public com.amazonaws.mturk.requester.EventType getEventType(int i) {
return this.eventType[i];
}
public void setEventType(int i, com.amazonaws.mturk.requester.EventType _value) {
this.eventType[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof NotificationSpecification)) return false;
NotificationSpecification other = (NotificationSpecification) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.destination==null && other.getDestination()==null) ||
(this.destination!=null &&
this.destination.equals(other.getDestination()))) &&
((this.transport==null && other.getTransport()==null) ||
(this.transport!=null &&
this.transport.equals(other.getTransport()))) &&
((this.version==null && other.getVersion()==null) ||
(this.version!=null &&
this.version.equals(other.getVersion()))) &&
((this.eventType==null && other.getEventType()==null) ||
(this.eventType!=null &&
java.util.Arrays.equals(this.eventType, other.getEventType())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getDestination() != null) {
_hashCode += getDestination().hashCode();
}
if (getTransport() != null) {
_hashCode += getTransport().hashCode();
}
if (getVersion() != null) {
_hashCode += getVersion().hashCode();
}
if (getEventType() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getEventType());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getEventType(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(NotificationSpecification.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "NotificationSpecification"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("destination");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Destination"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("transport");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Transport"));
elemField.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "NotificationTransport"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("version");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "Version"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("eventType");
elemField.setXmlName(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "EventType"));
elemField.setXmlType(new javax.xml.namespace.QName("http://requester.mturk.amazonaws.com/doc/2007-06-21", "EventType"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
elemField.setMaxOccursUnbounded(true);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}