com.webalgorithm.weather.vo
Class LocationVO

java.lang.Object
  |
  +--com.webalgorithm.weather.vo.LocationVO
All Implemented Interfaces:
java.io.Serializable

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

Description: This object represens location for your weather search

Copyright: Copyright (c) 2003

Company: WebAlgorithm, Inc

Version:
1.0
See Also:
Serialized Form

Field Summary
private  java.lang.Float latitude
          Geographical latitude of the location
private  java.lang.String locationId
          Location id is a zip code of your location
private  java.lang.String locationName
          Location name is a description of your location for example "Dallas, TX (75287)"
private  java.lang.Float longitude
          Geographical longitue of the location
private  java.sql.Time sunriseTime
          Sunrise time at the location
private  java.sql.Time sunsetTime
          Sunset time at the location
private static java.text.SimpleDateFormat timeFormat
          Format for Time returned by Weather.com XOAP - "h:mm a"
private  java.lang.Integer zone
          time zone (GMT Offset)
 
Constructor Summary
LocationVO()
           
 
Method Summary
 java.lang.Float getLatitude()
           
 java.lang.String getLocationId()
           
 java.lang.String getLocationName()
           
 java.lang.Float getLongitude()
           
 java.sql.Time getSunriseTime()
           
 java.sql.Time getSunsetTime()
           
 java.lang.Integer getZone()
           
 void setLatitude(java.lang.Float latitude)
           
 void setLocationId(java.lang.String locationId)
           
 void setLocationName(java.lang.String locationName)
           
 void setLongitude(java.lang.Float longitude)
           
 void setSunriseTime(java.lang.String sunrise)
           
 void setSunsetTime(java.lang.String sunrise)
           
 void setZone(java.lang.Integer zone)
           
 java.lang.String toString()
          This method is usefull for debugging, it returns a formatted location information, which is easy to read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timeFormat

private static final java.text.SimpleDateFormat timeFormat
Format for Time returned by Weather.com XOAP - "h:mm a"


locationId

private java.lang.String locationId
Location id is a zip code of your location


locationName

private java.lang.String locationName
Location name is a description of your location for example "Dallas, TX (75287)"


longitude

private java.lang.Float longitude
Geographical longitue of the location


latitude

private java.lang.Float latitude
Geographical latitude of the location


sunriseTime

private java.sql.Time sunriseTime
Sunrise time at the location


sunsetTime

private java.sql.Time sunsetTime
Sunset time at the location


zone

private java.lang.Integer zone
time zone (GMT Offset)

Constructor Detail

LocationVO

public LocationVO()
Method Detail

getLocationId

public java.lang.String getLocationId()

setLocationId

public void setLocationId(java.lang.String locationId)

getLocationName

public java.lang.String getLocationName()

setLocationName

public void setLocationName(java.lang.String locationName)

getLongitude

public java.lang.Float getLongitude()

setLongitude

public void setLongitude(java.lang.Float longitude)

getLatitude

public java.lang.Float getLatitude()

setLatitude

public void setLatitude(java.lang.Float latitude)

getSunriseTime

public java.sql.Time getSunriseTime()

setSunriseTime

public void setSunriseTime(java.lang.String sunrise)

getSunsetTime

public java.sql.Time getSunsetTime()

setSunsetTime

public void setSunsetTime(java.lang.String sunrise)

getZone

public java.lang.Integer getZone()

setZone

public void setZone(java.lang.Integer zone)

toString

public java.lang.String toString()
This method is usefull for debugging, it returns a formatted location information, which is easy to read

Overrides:
toString in class java.lang.Object
Returns:


Copyright © 2003 WebAlgorithm, Inc All Rights Reserved.