com.github.fedy2.weather.data
Class Item

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

public class Item
extends Object

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

Constructor Summary
Item()
           
 
Method Summary
 Condition getCondition()
          Returns the current weather conditions.
 String getDescription()
          Returns a simple summary of the current conditions and tomorrow's forecast, in HTML format, including a link to Yahoo! Weather for the full forecast.
 List<Forecast> getForecasts()
          Returns the weather forecast for specific days.
 float getGeoLat()
          Returns the latitude of the location.
 float getGeoLong()
          Returns the longitude of the location.
 String getGuid()
          Returns an unique identifier for the forecast, made up of the location ID, the date, and the time.
 String getLink()
          Returns the Yahoo! Weather URL for this forecast.
 Date getPubDate()
          Returns the date and time this forecast was posted.
 String getTitle()
          Returns the forecast title and time, for example "Conditions for New York, NY at 1:51 pm EST".
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()
Method Detail

getTitle

public String getTitle()
Returns the forecast title and time, for example "Conditions for New York, NY at 1:51 pm EST".

Returns:
the title

getLink

public String getLink()
Returns the Yahoo! Weather URL for this forecast.

Returns:
the link

getDescription

public String getDescription()
Returns a simple summary of the current conditions and tomorrow's forecast, in HTML format, including a link to Yahoo! Weather for the full forecast.

Returns:
the description

getGuid

public String getGuid()
Returns an unique identifier for the forecast, made up of the location ID, the date, and the time.

Returns:
the guid

getPubDate

public Date getPubDate()
Returns the date and time this forecast was posted.

Returns:
the pubDate

getGeoLat

public float getGeoLat()
Returns the latitude of the location.

Returns:
the geoLat

getGeoLong

public float getGeoLong()
Returns the longitude of the location.

Returns:
the geoLong

getCondition

public Condition getCondition()
Returns the current weather conditions.

Returns:
the condition

getForecasts

public List<Forecast> getForecasts()
Returns the weather forecast for specific days.

Returns:
the forecasts

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.