com.github.fedy2.weather.data
Class Channel

java.lang.Object
  extended by com.github.fedy2.weather.data.Channel

public class Channel
extends Object

Author:
"Federico De Faveri defaveri@gmail.com"

Field Summary
 Astronomy astronomy
          Forecast information about current astronomical conditions.
 Atmosphere atmosphere
          Forecast information about current atmospheric pressure, humidity, and visibility.
 String description
          The overall description of the feed including the location, for example "Yahoo! Weather for Sunnyvale, CA"
 Image image
          The image used to identify this feed.
 Item item
          The local weather conditions and forecast for a specific location.
 String language
          The language of the weather forecast, for example, en-us for US English.
 Date lastBuildDate
          The last time the feed was updated.
 String link
          The URL for the Weather page of the forecast for this location.
 Location location
          The location of this forecast.
 String title
          The title of the feed, which includes the location city.
 long ttl
          Time to Live; how long in minutes this feed should be cached.
 Units units
          Units for various aspects of the forecast.
 Wind wind
          Forecast information about wind.
 
Constructor Summary
Channel()
           
 
Method Summary
 Astronomy getAstronomy()
          Returns the forecast information about current astronomical conditions.
 Atmosphere getAtmosphere()
          Returns the forecast information about current atmospheric pressure, humidity, and visibility.
 String getDescription()
          Returns the overall description of the feed including the location, for example "Yahoo! Weather for Sunnyvale, CA".
 Image getImage()
          Returns the image used to identify this feed.
 Item getItem()
          Returns the local weather conditions and forecast for a specific location.
 String getLanguage()
          Returns the language of the weather forecast, for example, en-us for US English.
 Date getLastBuildDate()
          Returns the last time the feed was updated.
 String getLink()
          Returns the URL for the Weather page of the forecast for this location.
 Location getLocation()
          Returns the location of this forecast.
 String getTitle()
          Returns the title of the feed, which includes the location city.
 long getTtl()
          Returns the time to Live; how long in minutes this feed should be cached.
 Units getUnits()
          Returns the units for various aspects of the forecast.
 Wind getWind()
          Returns the forecast information about wind.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

title

public String title
The title of the feed, which includes the location city. For example "Yahoo! Weather - Sunnyvale, CA"


link

public String link
The URL for the Weather page of the forecast for this location. For example http://us.rd.yahoo.com/dailynews/rss/weather/ Sunnyvale__CA/ *http://weather.yahoo.com/ forecast/USCA1116_f.html


language

public String language
The language of the weather forecast, for example, en-us for US English.


description

public String description
The overall description of the feed including the location, for example "Yahoo! Weather for Sunnyvale, CA"


lastBuildDate

public Date lastBuildDate
The last time the feed was updated. The format is in the date format defined by RFC822 Section 5, for example Mon, 256 Sep 17:25:18 -0700.


ttl

public long ttl
Time to Live; how long in minutes this feed should be cached.


location

public Location location
The location of this forecast.


units

public Units units
Units for various aspects of the forecast.


wind

public Wind wind
Forecast information about wind.


atmosphere

public Atmosphere atmosphere
Forecast information about current atmospheric pressure, humidity, and visibility.


astronomy

public Astronomy astronomy
Forecast information about current astronomical conditions.


image

public Image image
The image used to identify this feed.


item

public Item item
The local weather conditions and forecast for a specific location.

Constructor Detail

Channel

public Channel()
Method Detail

getTitle

public String getTitle()
Returns the title of the feed, which includes the location city. For example "Yahoo! Weather - Sunnyvale, CA"

Returns:
the title

getLink

public String getLink()
Returns the URL for the Weather page of the forecast for this location. For example http://us.rd.yahoo.com/dailynews/rss/weather/ Sunnyvale__CA/ *http://weather.yahoo.com/ forecast/USCA1116_f.html

Returns:
the link

getLanguage

public String getLanguage()
Returns the language of the weather forecast, for example, en-us for US English.

Returns:
the language

getDescription

public String getDescription()
Returns the overall description of the feed including the location, for example "Yahoo! Weather for Sunnyvale, CA".

Returns:
the description

getLastBuildDate

public Date getLastBuildDate()
Returns the last time the feed was updated. The format is in the date format defined by RFC822 Section 5, for example Mon, 256 Sep 17:25:18 -0700.

Returns:
the lastBuildDate

getTtl

public long getTtl()
Returns the time to Live; how long in minutes this feed should be cached.

Returns:
the ttl

getLocation

public Location getLocation()
Returns the location of this forecast.

Returns:
the location

getUnits

public Units getUnits()
Returns the units for various aspects of the forecast.

Returns:
the units

getWind

public Wind getWind()
Returns the forecast information about wind.

Returns:
the wind

getAtmosphere

public Atmosphere getAtmosphere()
Returns the forecast information about current atmospheric pressure, humidity, and visibility.

Returns:
the atmosphere

getAstronomy

public Astronomy getAstronomy()
Returns the forecast information about current astronomical conditions.

Returns:
the astronomy

getImage

public Image getImage()
Returns the image used to identify this feed.

Returns:
the image

getItem

public Item getItem()
Returns the local weather conditions and forecast for a specific location.

Returns:
the item

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.