com.webalgorithm.weather.vo
Class DayVO

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

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

Description: Weather request can be issued for serveral days in advance, DayVO would represent each of those days

Copyright: Copyright (c) 2003

Company: WebAlgorithm, Inc

Version:
1.0
See Also:
Serialized Form

Field Summary
private  java.lang.Integer dayId
          Day Id is the sequence number of this day.
private  java.lang.String dayText
          Day text, for example "Aug 14"
private  java.lang.Integer high
          High temperature for this day
private  java.lang.Integer low
          Low temperature for this day
private  java.util.ArrayList parts
          Day part, there should be exactly 2 - day and night
private  java.sql.Time sunriseTime
          Sunrise time for this day
private  java.sql.Time sunsetTime
          Sunset time for this day
private static java.text.SimpleDateFormat timeFormat
          Format for Time returned by Weather.com XOAP - "h:mm a"
private  java.lang.String weekDay
          Name of the week day.
 
Constructor Summary
DayVO()
           
 
Method Summary
 void addPart(com.webalgorithm.weather.vo.PartVO part)
           
 java.lang.Integer getDayId()
           
 java.lang.String getDayText()
           
 java.lang.Integer getHigh()
           
 java.lang.Integer getLow()
           
 java.util.ArrayList getParts()
           
 java.sql.Time getSunriseTime()
           
 java.sql.Time getSunsetTime()
           
 java.lang.String getWeekDay()
           
 void setDayId(java.lang.Integer dayId)
           
 void setDayText(java.lang.String dayText)
           
 void setHigh(java.lang.Integer high)
           
 void setLow(java.lang.Integer low)
           
 void setSunriseTime(java.lang.String sunrise)
           
 void setSunsetTime(java.lang.String sunrise)
           
 void setWeekDay(java.lang.String weekDay)
           
 java.lang.String toString()
          This method is usefull for debugging, it returns a formatted day 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"


dayId

private java.lang.Integer dayId
Day Id is the sequence number of this day. If you search for 2 days in advance, you would have 2 days with indexes of "1" and "2"


weekDay

private java.lang.String weekDay
Name of the week day. i.e. Monday, Tuesday, etc


dayText

private java.lang.String dayText
Day text, for example "Aug 14"


high

private java.lang.Integer high
High temperature for this day


low

private java.lang.Integer low
Low temperature for this day


sunriseTime

private java.sql.Time sunriseTime
Sunrise time for this day


sunsetTime

private java.sql.Time sunsetTime
Sunset time for this day


parts

private java.util.ArrayList parts
Day part, there should be exactly 2 - day and night

Constructor Detail

DayVO

public DayVO()
Method Detail

getHigh

public java.lang.Integer getHigh()

setHigh

public void setHigh(java.lang.Integer high)

getLow

public java.lang.Integer getLow()

setLow

public void setLow(java.lang.Integer low)

getDayId

public java.lang.Integer getDayId()

setDayId

public void setDayId(java.lang.Integer dayId)

getWeekDay

public java.lang.String getWeekDay()

setWeekDay

public void setWeekDay(java.lang.String weekDay)

getDayText

public java.lang.String getDayText()

setDayText

public void setDayText(java.lang.String dayText)

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)

getParts

public java.util.ArrayList getParts()

addPart

public void addPart(com.webalgorithm.weather.vo.PartVO part)

toString

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

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


Copyright © 2003 WebAlgorithm, Inc All Rights Reserved.