Class YWeatherModuleImpl
- java.lang.Object
-
- com.rometools.rome.feed.module.ModuleImpl
-
- com.rometools.modules.yahooweather.YWeatherModuleImpl
-
- All Implemented Interfaces:
YWeatherEntryModule,YWeatherFeedModule,YWeatherModule,CopyFrom,Module,Serializable,Cloneable
public class YWeatherModuleImpl extends ModuleImpl implements YWeatherEntryModule, YWeatherFeedModule
A Module implementation for entry or feed level information.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceYWeatherModuleImpl.CopyFromInterfaceInteface combining feed and entry module.
-
Field Summary
-
Fields inherited from interface com.rometools.modules.yahooweather.YWeatherModule
URI
-
-
Constructor Summary
Constructors Constructor Description YWeatherModuleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(CopyFrom o)AstronomygetAstronomy()Astronomical information for the location.AtmospheregetAtmosphere()The current atmospheric conditions.ConditiongetCondition()The current conditions.Forecast[]getForecasts()Forecasts for this location.Class<? extends Module>getInterface()LocationgetLocation()The location the feed is for.UnitsgetUnits()Units that data in the feed is provided in.WindgetWind()Current wind conditions at the location.voidsetAstronomy(Astronomy astronomy)Astronomical information for the location.voidsetAtmosphere(Atmosphere atmosphere)Sets the current atmopheric condictions.voidsetCondition(Condition condition)The current conditions.voidsetForecasts(Forecast[] forecasts)Forecasts for this location.voidsetLocation(Location location)The location the feed is for.voidsetUnits(Units units)Units that data in the feed is provided in.voidsetWind(Wind wind)Current wind conditions at the location.-
Methods inherited from class com.rometools.rome.feed.module.ModuleImpl
clone, equals, getUri, hashCode, toString
-
-
-
-
Method Detail
-
getInterface
public Class<? extends Module> getInterface()
- Specified by:
getInterfacein interfaceCopyFrom
-
getLocation
public Location getLocation()
Description copied from interface:YWeatherFeedModuleThe location the feed is for.- Specified by:
getLocationin interfaceYWeatherFeedModule- Returns:
- The location the feed is for.
-
setLocation
public void setLocation(Location location)
Description copied from interface:YWeatherFeedModuleThe location the feed is for.- Specified by:
setLocationin interfaceYWeatherFeedModule- Parameters:
location- The location the feed is for.
-
getAstronomy
public Astronomy getAstronomy()
Description copied from interface:YWeatherFeedModuleAstronomical information for the location.- Specified by:
getAstronomyin interfaceYWeatherFeedModule- Returns:
- Astronomical information for the location.
-
setAstronomy
public void setAstronomy(Astronomy astronomy)
Description copied from interface:YWeatherFeedModuleAstronomical information for the location.- Specified by:
setAstronomyin interfaceYWeatherFeedModule- Parameters:
astronomy- Astronomical information for the location.
-
getUnits
public Units getUnits()
Description copied from interface:YWeatherFeedModuleUnits that data in the feed is provided in.- Specified by:
getUnitsin interfaceYWeatherFeedModule- Returns:
- Units that data in the feed is provided in.
-
setUnits
public void setUnits(Units units)
Description copied from interface:YWeatherFeedModuleUnits that data in the feed is provided in.- Specified by:
setUnitsin interfaceYWeatherFeedModule- Parameters:
units- Units that data in the feed is provided in.
-
getCondition
public Condition getCondition()
Description copied from interface:YWeatherEntryModuleThe current conditions.- Specified by:
getConditionin interfaceYWeatherEntryModule- Returns:
- The current conditions.
-
setCondition
public void setCondition(Condition condition)
Description copied from interface:YWeatherEntryModuleThe current conditions.- Specified by:
setConditionin interfaceYWeatherEntryModule- Parameters:
condition- The current conditions.
-
getForecasts
public Forecast[] getForecasts()
Description copied from interface:YWeatherEntryModuleForecasts for this location.- Specified by:
getForecastsin interfaceYWeatherEntryModule- Returns:
- Forecasts for this location.
-
setForecasts
public void setForecasts(Forecast[] forecasts)
Description copied from interface:YWeatherEntryModuleForecasts for this location.- Specified by:
setForecastsin interfaceYWeatherEntryModule- Parameters:
forecasts- Forecasts for this location.
-
getWind
public Wind getWind()
Description copied from interface:YWeatherFeedModuleCurrent wind conditions at the location.- Specified by:
getWindin interfaceYWeatherFeedModule- Returns:
- Current wind conditions at the location.
-
setWind
public void setWind(Wind wind)
Description copied from interface:YWeatherFeedModuleCurrent wind conditions at the location.- Specified by:
setWindin interfaceYWeatherFeedModule- Parameters:
wind- Current wind conditions at the location.
-
getAtmosphere
public Atmosphere getAtmosphere()
Description copied from interface:YWeatherFeedModuleThe current atmospheric conditions.- Specified by:
getAtmospherein interfaceYWeatherFeedModule- Returns:
- Atmosphere object.
-
setAtmosphere
public void setAtmosphere(Atmosphere atmosphere)
Description copied from interface:YWeatherFeedModuleSets the current atmopheric condictions.- Specified by:
setAtmospherein interfaceYWeatherFeedModule- Parameters:
atmosphere- Atmosphere object.
-
-