Show FlightInfo.java syntax highlighted
/**
* FlightInfo.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 FlightInfo implements java.io.Serializable {
private java.lang.String flight_id;
private java.lang.String departure;
private java.lang.String destination;
public FlightInfo() {
}
public FlightInfo(
java.lang.String flight_id,
java.lang.String departure,
java.lang.String destination) {
this.flight_id = flight_id;
this.departure = departure;
this.destination = destination;
}
/**
* Gets the flight_id value for this FlightInfo.
*
* @return flight_id
*/
public java.lang.String getFlight_id() {
return flight_id;
}
/**
* Sets the flight_id value for this FlightInfo.
*
* @param flight_id
*/
public void setFlight_id(java.lang.String flight_id) {
this.flight_id = flight_id;
}
/**
* Gets the departure value for this FlightInfo.
*
* @return departure
*/
public java.lang.String getDeparture() {
return departure;
}
/**
* Sets the departure value for this FlightInfo.
*
* @param departure
*/
public void setDeparture(java.lang.String departure) {
this.departure = departure;
}
/**
* Gets the destination value for this FlightInfo.
*
* @return destination
*/
public java.lang.String getDestination() {
return destination;
}
/**
* Sets the destination value for this FlightInfo.
*
* @param destination
*/
public void setDestination(java.lang.String destination) {
this.destination = destination;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof FlightInfo)) return false;
FlightInfo other = (FlightInfo) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.flight_id==null && other.getFlight_id()==null) ||
(this.flight_id!=null &&
this.flight_id.equals(other.getFlight_id()))) &&
((this.departure==null && other.getDeparture()==null) ||
(this.departure!=null &&
this.departure.equals(other.getDeparture()))) &&
((this.destination==null && other.getDestination()==null) ||
(this.destination!=null &&
this.destination.equals(other.getDestination())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getFlight_id() != null) {
_hashCode += getFlight_id().hashCode();
}
if (getDeparture() != null) {
_hashCode += getDeparture().hashCode();
}
if (getDestination() != null) {
_hashCode += getDestination().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(FlightInfo.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("urn:iTicket", "FlightInfo"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("flight_id");
elemField.setXmlName(new javax.xml.namespace.QName("", "flight_id"));
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("departure");
elemField.setXmlName(new javax.xml.namespace.QName("", "departure"));
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("destination");
elemField.setXmlName(new javax.xml.namespace.QName("", "destination"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
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