Class Location
- java.lang.Object
-
- com.rometools.modules.yahooweather.types.Location
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Location extends Object implements Serializable, Cloneable
The location of this forecast. Attributes:- city: city name (string)
- region: state, territory, or region, if given (string)
- country: two-character country code. (string)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()booleanequals(Object o)StringgetCity()City nameStringgetCountry()country two-character country code.StringgetRegion()state, territory, or region, if giveninthashCode()voidsetCity(String city)City namevoidsetCountry(String country)country two-character country code.voidsetRegion(String region)state, territory, or region, if givenStringtoString()
-
-
-
Method Detail
-
getCity
public String getCity()
City name- Returns:
- city name.
-
setCity
public void setCity(String city)
City name- Parameters:
city- city name
-
getRegion
public String getRegion()
state, territory, or region, if given- Returns:
- state, territory, or region, if given
-
setRegion
public void setRegion(String region)
state, territory, or region, if given- Parameters:
region- state, territory, or region, if given
-
getCountry
public String getCountry()
country two-character country code.- Returns:
- country two-character country code.
-
setCountry
public void setCountry(String country)
country two-character country code.- Parameters:
country- country two-character country code.
-
-