GetFlightTableRequest.java from iTicket at Krugle
Show GetFlightTableRequest.java syntax highlighted
/**
* GetFlightTableRequest.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
*/
package iTicket_pkg;
public class GetFlightTableRequest implements java.io.Serializable {
private int departureairportid;
private int destinationairportid;
private java.util.Date departuredate;
private boolean usevia;
public GetFlightTableRequest() {
}
public GetFlightTableRequest(
int departureairportid,
int destinationairportid,
java.util.Date departuredate,
boolean usevia) {
this.departureairportid = departureairportid;
this.destinationairportid = destinationairportid;
this.departuredate = departuredate;
this.usevia = usevia;
}
/**
* Gets the departureairportid value for this GetFlightTableRequest.
*
* @return departureairportid
*/
public int getDepartureairportid() {
return departureairportid;
}
/**
* Sets the departureairportid value for this GetFlightTableRequest.
*
* @param departureairportid
*/
public void setDepartureairportid(int departureairportid) {
this.departureairportid = departureairportid;
}
/**
* Gets the destinationairportid value for this GetFlightTableRequest.
*
* @return destinationairportid
*/
public int getDestinationairportid() {
return destinationairportid;
}
/**
* Sets the destinationairportid value for this GetFlightTableRequest.
*
* @param destinationairportid
*/
public void setDestinationairportid(int destinationairportid) {
this.destinationairportid = destinationairportid;
}
/**
* Gets the departuredate value for this GetFlightTableRequest.
*
* @return departuredate
*/
public java.util.Date getDeparturedate() {
return departuredate;
}
/**
* Sets the departuredate value for this GetFlightTableRequest.
*
* @param departuredate
*/
public void setDeparturedate(java.util.Date departuredate) {
this.departuredate = departuredate;
}
/**
* Gets the usevia value for this GetFlightTableRequest.
*
* @return usevia
*/
public boolean isUsevia() {
return usevia;
}
/**
* Sets the usevia value for this GetFlightTableRequest.
*
* @param usevia
*/
public void setUsevia(boolean usevia) {
this.usevia = usevia;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof GetFlightTableRequest)) return false;
GetFlightTableRequest other = (GetFlightTableRequest) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.departureairportid == other.getDepartureairportid() &&
this.destinationairportid == other.getDestinationairportid() &&
((this.departuredate==null && other.getDeparturedate()==null) ||
(this.departuredate!=null &&
this.departuredate.equals(other.getDeparturedate()))) &&
this.usevia == other.isUsevia();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getDepartureairportid();
_hashCode += getDestinationairportid();
if (getDeparturedate() != null) {
_hashCode += getDeparturedate().hashCode();
}
_hashCode += (isUsevia() ? Boolean.TRUE : Boolean.FALSE).hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(GetFlightTableRequest.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:iTicket", "getFlightTableRequest"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("departureairportid");
elemField.setXmlName(new javax.xml.namespace.QName("", "departureairportid"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("destinationairportid");
elemField.setXmlName(new javax.xml.namespace.QName("", "destinationairportid"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("departuredate");
elemField.setXmlName(new javax.xml.namespace.QName("", "departuredate"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "date"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("usevia");
elemField.setXmlName(new javax.xml.namespace.QName("", "usevia"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
elemField.setNillable(false);
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);
}
}
See more files for this project here