just some source cleanup

This commit is contained in:
Martin Kurz 2014-04-20 20:53:39 +02:00
parent 8757d20686
commit 62af757574
4 changed files with 24 additions and 19 deletions

View file

@ -51,26 +51,26 @@ public interface YWeatherEntryModule extends YWeatherModule {
*
* @return The current conditions.
*/
public Condition getCondition();
Condition getCondition();
/**
* The current conditions.
*
* @param condition The current conditions.
*/
public void setCondition(Condition condition);
void setCondition(Condition condition);
/**
* Forecasts for this location.
*
* @return Forecasts for this location.
*/
public Forecast[] getForecasts();
Forecast[] getForecasts();
/**
* Forecasts for this location.
*
* @param forecasts Forecasts for this location.
*/
public void setForecasts(Forecast[] forecasts);
void setForecasts(Forecast[] forecasts);
}

View file

@ -53,68 +53,68 @@ public interface YWeatherFeedModule extends YWeatherModule {
*
* @return The location the feed is for.
*/
public Location getLocation();
Location getLocation();
/**
* The location the feed is for.
*
* @param location The location the feed is for.
*/
public void setLocation(Location location);
void setLocation(Location location);
/**
* Astronomical information for the location.
*
* @return Astronomical information for the location.
*/
public Astronomy getAstronomy();
Astronomy getAstronomy();
/**
* Astronomical information for the location.
*
* @param astronomy Astronomical information for the location.
*/
public void setAstronomy(Astronomy astronomy);
void setAstronomy(Astronomy astronomy);
/**
* Units that data in the feed is provided in.
*
* @return Units that data in the feed is provided in.
*/
public Units getUnits();
Units getUnits();
/**
* Units that data in the feed is provided in.
*
* @param units Units that data in the feed is provided in.
*/
public void setUnits(Units units);
void setUnits(Units units);
/**
* Current wind conditions at the location.
*
* @return Current wind conditions at the location.
*/
public Wind getWind();
Wind getWind();
/**
* Current wind conditions at the location.
*
* @param wind Current wind conditions at the location.
*/
public void setWind(Wind wind);
void setWind(Wind wind);
/**
* The current atmospheric conditions.
*
* @return Atmosphere object.
*/
public Atmosphere getAtmosphere();
Atmosphere getAtmosphere();
/**
* Sets the current atmopheric condictions
* Sets the current atmopheric condictions.
*
* @param value Atmosphere object.
*/
public void setAtmosphere(Atmosphere value);
void setAtmosphere(Atmosphere value);
}

View file

@ -38,14 +38,14 @@ package org.rometools.feed.module.yahooweather;
import com.sun.syndication.feed.module.Module;
/**
* A simple parent interface that defines the feed URI
* A simple parent interface that defines the feed URI.
*
* @version $Id: YWeatherModule.java,v 1.2 2008/01/22 14:50:06 kebernet Exp $
* @author <a href="mailto:cooper@screaming-penguin.com">Robert "kebernet" Cooper</a>
*/
public interface YWeatherModule extends Module {
/**
* "http://xml.weather.yahoo.com/ns/rss/1.0"
* "http://xml.weather.yahoo.com/ns/rss/1.0".
*/
public static String URI = "http://xml.weather.yahoo.com/ns/rss/1.0";
String URI = "http://xml.weather.yahoo.com/ns/rss/1.0";
}

View file

@ -63,6 +63,8 @@ public class YWeatherModuleImpl extends ModuleImpl implements YWeatherEntryModul
private Wind wind;
private Forecast[] forecasts;
/**
*/
public YWeatherModuleImpl() {
super(YWeatherModuleImpl.class, YWeatherModule.URI);
}
@ -164,6 +166,9 @@ public class YWeatherModuleImpl extends ModuleImpl implements YWeatherEntryModul
this.atmosphere = atmosphere;
}
public static interface CopyFromInterface extends YWeatherFeedModule, YWeatherEntryModule {
/**
* Inteface combining feed and entry module.
*/
public interface CopyFromInterface extends YWeatherFeedModule, YWeatherEntryModule {
}
}