com.plexobject.iploc
Class AirportLocation

java.lang.Object
  |
  +--com.plexobject.iploc.Location
        |
        +--com.plexobject.iploc.AirportLocation
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

public class AirportLocation
extends Location

See Also:
Serialized Form

Nested Class Summary
static class AirportLocation.AirportCmp
           
 
Nested classes inherited from class com.plexobject.iploc.Location
Location.CityCmp, Location.CountryCmp, Location.IDCmp, Location.StateCodeCmp, Location.StateNameCmp, Location.TimeZoneCmp
 
Field Summary
static AirportLocation.AirportCmp AIRPORT_CMP
           
static java.lang.String[][] AIRPORTS
           
static java.lang.String ALPHABETS
           
static java.lang.String TARGET
           
static int TEST_MAX
           
 
Fields inherited from class com.plexobject.iploc.Location
CITY_CMP, COUNTRY_CMP, GMT_LOCATION, ID_CMP, LOCAL_LOCATION, MILLI_FORMAT, STATE_CODE_CMP, STATE_NAME_CMP, TZ_CMP, UTC, ZONES_INFO
 
Constructor Summary
AirportLocation()
           
AirportLocation(java.lang.String airportCode, java.lang.String airportName, java.lang.String country, java.lang.String countryCode, java.lang.String countryPhonePrefix, float gmtOffset, int runwayLength, int runwayElevation, float latitude, float longitude)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getAirportName()
           
static java.lang.String[] getCityCountryByCode(java.lang.String c)
           
static java.lang.String getCountryByCity(java.lang.String c)
           
 java.lang.String getCountryPhonePrefix()
           
 java.lang.String getDisplayName()
           
 int getRunwayElevation()
           
 int getRunwayLength()
           
 boolean hasCountryPhonePrefix()
           
static com.plexobject.iploc.AirportLocation[] load()
           
static com.plexobject.iploc.AirportLocation[] load(java.io.File file)
           
static com.plexobject.iploc.AirportLocation[] load(java.io.InputStream is)
           
static com.plexobject.iploc.AirportLocation[] loadXml()
           
static com.plexobject.iploc.AirportLocation[] loadXml(java.io.File file)
           
static com.plexobject.iploc.AirportLocation[] loadXml(java.io.InputStream is)
           
static void main(java.lang.String[] args)
           
static void save(java.lang.String file)
           
static void saveXml(java.lang.String file)
           
 void setAirportName(java.lang.String airportName)
           
 void setCountryPhonePrefix(java.lang.String countryPhonePrefix)
           
 void setRunwayElevation(int runwayElevation)
           
 void setRunwayLength(int runwayLength)
           
 java.lang.String toString()
           
 
Methods inherited from class com.plexobject.iploc.Location
clone, copy, currentTimeMillis, formatDate, formatDate, formatDate, formatDate, getAirportCode, getAltitude, getAreaCode, getCalendar, getCity, getCityState, getCityStateCountry, getContinent, getCountry, getCountryCode, getDateFormat, getDateFormat, getDialCode, getDisplayLocation, getDstAdjustment, getDstEnd, getDstStart, getGmtOffset, getGmtTime, getID, getLatitude, getLatitude, getLatitudeDirection, getLatitudeString, getLocale, getLocalTime, getLongitude, getLongitude, getLongitudeDirection, getLongitudeString, getNameForJList, getOffset, getOffset, getRawOffset, getStateCode, getStateName, getSummaryForSalat, getTime, getTimeZone, getTimeZoneString, getTz, hasAirportCode, hasAreaCode, hasCity, hasCountry, hasCountryCode, hasGeo, hasGmtOffset, hashCode, hasLatitude, hasLongitude, hasStateCode, hasStateName, hasTimeZone, isCapital, isDst, isLocalTimeZone, isLocalTimeZone, isNull, isTimeZoneMatched, mimeDeserialize, mimeSerialize, newBuddhistCalendar, newChineseCalendar, newGregorianCalendar, newGregorianCalendar, newHebrewCalendar, newIslamicCalendar, newJapaneseCalendar, setAirportCode, setAltitude, setAreaCode, setCapital, setCity, setCountry, setCountryCode, setDst, setDstAdjustment, setDstEnd, setDstStart, setGmtOffset, setLatitude, setLongitude, setState, setStateCode, setStateName, setTime, setTimeZone, toDegMinutes, toTimeZone, updateTime, validateLatitude, validateLongitude
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TARGET

public static final java.lang.String TARGET
See Also:
Constant Field Values

ALPHABETS

public static final java.lang.String ALPHABETS
See Also:
Constant Field Values

TEST_MAX

public static final int TEST_MAX
See Also:
Constant Field Values

AIRPORT_CMP

public static AirportLocation.AirportCmp AIRPORT_CMP

AIRPORTS

public static final java.lang.String[][] AIRPORTS
Constructor Detail

AirportLocation

public AirportLocation()

AirportLocation

public AirportLocation(java.lang.String airportCode,
                       java.lang.String airportName,
                       java.lang.String country,
                       java.lang.String countryCode,
                       java.lang.String countryPhonePrefix,
                       float gmtOffset,
                       int runwayLength,
                       int runwayElevation,
                       float latitude,
                       float longitude)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class Location

getAirportName

public java.lang.String getAirportName()

setAirportName

public void setAirportName(java.lang.String airportName)
Parameters:
airportName -

getCountryPhonePrefix

public java.lang.String getCountryPhonePrefix()

hasCountryPhonePrefix

public boolean hasCountryPhonePrefix()

setCountryPhonePrefix

public void setCountryPhonePrefix(java.lang.String countryPhonePrefix)
Parameters:
countryPhonePrefix -

getRunwayLength

public int getRunwayLength()

setRunwayLength

public void setRunwayLength(int runwayLength)
Parameters:
runwayLength - // in feet

getRunwayElevation

public int getRunwayElevation()

setRunwayElevation

public void setRunwayElevation(int runwayElevation)
Parameters:
runwayElevation - // in feet

getDisplayName

public java.lang.String getDisplayName()
Overrides:
getDisplayName in class Location
Returns:
returns displayable name

toString

public java.lang.String toString()
Overrides:
toString in class Location

getCityCountryByCode

public static java.lang.String[] getCityCountryByCode(java.lang.String c)

getCountryByCity

public static java.lang.String getCountryByCity(java.lang.String c)

saveXml

public static void saveXml(java.lang.String file)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

loadXml

public static com.plexobject.iploc.AirportLocation[] loadXml(java.io.File file)
                                                      throws java.io.IOException,
                                                             java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

loadXml

public static com.plexobject.iploc.AirportLocation[] loadXml()
                                                      throws java.io.IOException,
                                                             java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

loadXml

public static com.plexobject.iploc.AirportLocation[] loadXml(java.io.InputStream is)
                                                      throws java.io.IOException,
                                                             java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

save

public static void save(java.lang.String file)
                 throws java.io.IOException
java.io.IOException

load

public static com.plexobject.iploc.AirportLocation[] load(java.io.File file)
                                                   throws java.io.IOException,
                                                          java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

load

public static com.plexobject.iploc.AirportLocation[] load()
                                                   throws java.io.IOException,
                                                          java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

load

public static com.plexobject.iploc.AirportLocation[] load(java.io.InputStream is)
                                                   throws java.io.IOException,
                                                          java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Location