public class YWeatherModuleImpl extends ModuleImpl implements YWeatherEntryModule, YWeatherFeedModule
Modifier and Type | Class and Description |
---|---|
static interface |
YWeatherModuleImpl.CopyFromInterface
Inteface combining feed and entry module.
|
Modifier and Type | Field and Description |
---|---|
private Astronomy |
astronomy |
private Atmosphere |
atmosphere |
private Condition |
condition |
private Forecast[] |
forecasts |
private Location |
location |
private static long |
serialVersionUID |
private Units |
units |
private Wind |
wind |
URI
Constructor and Description |
---|
YWeatherModuleImpl() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(CopyFrom o)
Copies all the properties of the given bean into this one.
|
Astronomy |
getAstronomy()
Astronomical information for the location.
|
Atmosphere |
getAtmosphere()
The current atmospheric conditions.
|
Condition |
getCondition()
The current conditions.
|
Forecast[] |
getForecasts()
Forecasts for this location.
|
java.lang.Class<? extends Module> |
getInterface()
Returns the interface the copyFrom works on.
|
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.
|
clone, equals, getUri, hashCode, toString
private static final long serialVersionUID
private Location location
private Astronomy astronomy
private Atmosphere atmosphere
private Units units
private Condition condition
private Wind wind
private Forecast[] forecasts
public java.lang.Class<? extends Module> getInterface()
CopyFrom
This is useful when dealing with properties that may have multiple implementations. For example, Module.
getInterface
in interface CopyFrom
public void copyFrom(CopyFrom o)
CopyFrom
Any existing properties in this bean are lost.
This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
public Location getLocation()
YWeatherFeedModule
getLocation
in interface YWeatherFeedModule
public void setLocation(Location location)
YWeatherFeedModule
setLocation
in interface YWeatherFeedModule
location
- The location the feed is for.public Astronomy getAstronomy()
YWeatherFeedModule
getAstronomy
in interface YWeatherFeedModule
public void setAstronomy(Astronomy astronomy)
YWeatherFeedModule
setAstronomy
in interface YWeatherFeedModule
astronomy
- Astronomical information for the location.public Units getUnits()
YWeatherFeedModule
getUnits
in interface YWeatherFeedModule
public void setUnits(Units units)
YWeatherFeedModule
setUnits
in interface YWeatherFeedModule
units
- Units that data in the feed is provided in.public Condition getCondition()
YWeatherEntryModule
getCondition
in interface YWeatherEntryModule
public void setCondition(Condition condition)
YWeatherEntryModule
setCondition
in interface YWeatherEntryModule
condition
- The current conditions.public Forecast[] getForecasts()
YWeatherEntryModule
getForecasts
in interface YWeatherEntryModule
public void setForecasts(Forecast[] forecasts)
YWeatherEntryModule
setForecasts
in interface YWeatherEntryModule
forecasts
- Forecasts for this location.public Wind getWind()
YWeatherFeedModule
getWind
in interface YWeatherFeedModule
public void setWind(Wind wind)
YWeatherFeedModule
setWind
in interface YWeatherFeedModule
wind
- Current wind conditions at the location.public Atmosphere getAtmosphere()
YWeatherFeedModule
getAtmosphere
in interface YWeatherFeedModule
public void setAtmosphere(Atmosphere atmosphere)
YWeatherFeedModule
setAtmosphere
in interface YWeatherFeedModule
atmosphere
- Atmosphere object.