org.rometools.feed.module.yahooweather
Class YWeatherModuleImpl

java.lang.Object
  extended by com.sun.syndication.feed.module.ModuleImpl
      extended by org.rometools.feed.module.yahooweather.YWeatherModuleImpl
All Implemented Interfaces:
com.sun.syndication.feed.CopyFrom, com.sun.syndication.feed.module.Module, Serializable, Cloneable, YWeatherEntryModule, YWeatherFeedModule, YWeatherModule

public class YWeatherModuleImpl
extends com.sun.syndication.feed.module.ModuleImpl
implements YWeatherEntryModule, YWeatherFeedModule

A Module implementation for entry or feed level information.

Version:
$Id: YWeatherModuleImpl.java,v 1.2 2008/01/22 14:50:06 kebernet Exp $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Nested Class Summary
static interface YWeatherModuleImpl.CopyFromInterface
           
 
Field Summary
 
Fields inherited from interface org.rometools.feed.module.yahooweather.YWeatherModule
URI
 
Constructor Summary
YWeatherModuleImpl()
           
 
Method Summary
 void copyFrom(com.sun.syndication.feed.CopyFrom o)
           
 Astronomy getAstronomy()
          Astronomical information for the location.
 Atmosphere getAtmosphere()
          The current atmospheric conditions.
 Condition getCondition()
          The current conditions.
 Forecast[] getForecasts()
          Forecasts for this location.
 Class getInterface()
           
 Location getLocation()
          The location the feed is for.
 Units getUnits()
          Units that data in the feed is provided in.
 Wind getWind()
          Current wind conditions at the location.
 void setAstronomy(Astronomy astronomy)
          Astronomical information for the location.
 void setAtmosphere(Atmosphere atmosphere)
          Sets the current atmopheric condictions
 void setCondition(Condition condition)
          The current conditions.
 void setForecasts(Forecast[] forecasts)
          Forecasts for this location.
 void setLocation(Location location)
          The location the feed is for.
 void setUnits(Units units)
          Units that data in the feed is provided in.
 void setWind(Wind wind)
          Current wind conditions at the location.
 
Methods inherited from class com.sun.syndication.feed.module.ModuleImpl
clone, equals, getUri, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.syndication.feed.module.Module
clone, getUri
 

Constructor Detail

YWeatherModuleImpl

public YWeatherModuleImpl()
Method Detail

getInterface

public Class getInterface()
Specified by:
getInterface in interface com.sun.syndication.feed.CopyFrom

copyFrom

public void copyFrom(com.sun.syndication.feed.CopyFrom o)
Specified by:
copyFrom in interface com.sun.syndication.feed.CopyFrom

getLocation

public Location getLocation()
Description copied from interface: YWeatherFeedModule
The location the feed is for.

Specified by:
getLocation in interface YWeatherFeedModule
Returns:
The location the feed is for.

setLocation

public void setLocation(Location location)
Description copied from interface: YWeatherFeedModule
The location the feed is for.

Specified by:
setLocation in interface YWeatherFeedModule
Parameters:
location - The location the feed is for.

getAstronomy

public Astronomy getAstronomy()
Description copied from interface: YWeatherFeedModule
Astronomical information for the location.

Specified by:
getAstronomy in interface YWeatherFeedModule
Returns:
Astronomical information for the location.

setAstronomy

public void setAstronomy(Astronomy astronomy)
Description copied from interface: YWeatherFeedModule
Astronomical information for the location.

Specified by:
setAstronomy in interface YWeatherFeedModule
Parameters:
astronomy - Astronomical information for the location.

getUnits

public Units getUnits()
Description copied from interface: YWeatherFeedModule
Units that data in the feed is provided in.

Specified by:
getUnits in interface YWeatherFeedModule
Returns:
Units that data in the feed is provided in.

setUnits

public void setUnits(Units units)
Description copied from interface: YWeatherFeedModule
Units that data in the feed is provided in.

Specified by:
setUnits in interface YWeatherFeedModule
Parameters:
units - Units that data in the feed is provided in.

getCondition

public Condition getCondition()
Description copied from interface: YWeatherEntryModule
The current conditions.

Specified by:
getCondition in interface YWeatherEntryModule
Returns:
The current conditions.

setCondition

public void setCondition(Condition condition)
Description copied from interface: YWeatherEntryModule
The current conditions.

Specified by:
setCondition in interface YWeatherEntryModule
Parameters:
condition - The current conditions.

getForecasts

public Forecast[] getForecasts()
Description copied from interface: YWeatherEntryModule
Forecasts for this location.

Specified by:
getForecasts in interface YWeatherEntryModule
Returns:
Forecasts for this location.

setForecasts

public void setForecasts(Forecast[] forecasts)
Description copied from interface: YWeatherEntryModule
Forecasts for this location.

Specified by:
setForecasts in interface YWeatherEntryModule
Parameters:
forecasts - Forecasts for this location.

getWind

public Wind getWind()
Description copied from interface: YWeatherFeedModule
Current wind conditions at the location.

Specified by:
getWind in interface YWeatherFeedModule
Returns:
Current wind conditions at the location.

setWind

public void setWind(Wind wind)
Description copied from interface: YWeatherFeedModule
Current wind conditions at the location.

Specified by:
setWind in interface YWeatherFeedModule
Parameters:
wind - Current wind conditions at the location.

getAtmosphere

public Atmosphere getAtmosphere()
Description copied from interface: YWeatherFeedModule
The current atmospheric conditions.

Specified by:
getAtmosphere in interface YWeatherFeedModule
Returns:
Atmosphere object.

setAtmosphere

public void setAtmosphere(Atmosphere atmosphere)
Description copied from interface: YWeatherFeedModule
Sets the current atmopheric condictions

Specified by:
setAtmosphere in interface YWeatherFeedModule
Parameters:
atmosphere - Atmosphere object.


Copyright © 2013 ROME Project. All Rights Reserved.