faa.tg.nas.airport
Class AirportID

java.lang.Object
  extended by faa.tg.nas.airport.AirportID
All Implemented Interfaces:
java.io.Serializable

public class AirportID
extends java.lang.Object
implements java.io.Serializable

 Defines an AirportID (three-letter airport identifier) class.
 
See the source AirportID.java

Version:
$Id: AirportID.java,v 3.1 2006/03/14 15:57:04 samf Exp $
Author:
Dana N. Whicker, FAA/ACT-510, Mon May 22 2000
See Also:
HasAirport, Serialized Form

Field Summary
protected  java.lang.String airportID
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private) static long serialVersionUID
           
 
Constructor Summary
AirportID(java.lang.String airportID)
          Constructor for an AirportID.
 
Method Summary
 boolean equals(AirportID aptID2)
          Returns boolean indicating whether airport IDs are for the same airport.
 java.lang.String toString()
          Returns the AirportID (three-letter airport identifier) as a String.
 java.lang.String validate(java.lang.String airportID)
          Validates the AirportID (three-letter airport identifier).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

airportID

protected java.lang.String airportID
Constructor Detail

AirportID

public AirportID(java.lang.String airportID)
Constructor for an AirportID.

Parameters:
airportID - The AirportID (three-letter airport identifier).
Method Detail

validate

public java.lang.String validate(java.lang.String airportID)
Validates the AirportID (three-letter airport identifier).

Parameters:
airportID - The AirportID (three-letter airport ID) to validate.
Returns:
Returns the validated aircraft ID or null if invalid.

equals

public boolean equals(AirportID aptID2)
Returns boolean indicating whether airport IDs are for the same airport.

Parameters:
aptID2 - The AirportID to check for equality.
Returns:
Returns whether the airport IDs are for the same airport.

toString

public java.lang.String toString()
Returns the AirportID (three-letter airport identifier) as a String.

Overrides:
toString in class java.lang.Object
Returns:
Returns the three-letter airport ID in string format.