|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.wx.WeatherDataBean
public abstract class WeatherDataBean
A bean to store weather data for a particular location.
| Nested Class Summary | |
|---|---|
static class |
WeatherDataBean.Type
An enumeration to store valid weather data types. |
| Field Summary |
|---|
| Fields inherited from interface org.deltava.beans.MapEntry |
|---|
BLUE, BROWN, COLORS, GREEN, GREY, LINECOLORS, ORANGE, PURPLE, RED, WHITE, YELLOW |
| Fields inherited from interface org.deltava.beans.GeoLocation |
|---|
ALL, DEGREE_MILES, LAT_DIRECTIONS, LATITUDE, LON_DIRECTIONS, LONGITUDE |
| Constructor Summary | |
|---|---|
WeatherDataBean()
Initializes the bean. |
|
| Method Summary | |
|---|---|
Object |
cacheKey()
Returns the cache key for this object. |
int |
compareTo(WeatherDataBean o)
Compares two beans by comparing their effectve dates, creation dates and data types. |
static WeatherDataBean |
create(WeatherDataBean.Type t)
Creates an arbitrary weather bean type. |
boolean |
equals(Object o)
|
String |
getCode()
Returns the observation station code. |
Date |
getCreatedOn()
Returns the creation date of this weather object. |
String |
getData()
Returns the weather data. |
Date |
getDate()
Returns the effective date of this weather data. |
String |
getInfoBox()
Returns the text to display in this marker's infobox if displayed in a Google Map. |
double |
getLatitude()
Returns the latitude of this observation. |
double |
getLongitude()
Returns the longitude of this observation. |
String |
getName()
Returns the observation station name. |
abstract WeatherDataBean.Type |
getType()
Returns the data type. |
int |
hashCode()
|
void |
setAirport(Airport a)
Sets the geographic location of this Observation station. |
void |
setAirport(AirportLocation al)
Sets the geographic location of this Observation station. |
void |
setData(String data)
Updates the weather data. |
void |
setDate(Date dt)
Sets the effective date of this weather data. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deltava.beans.MarkerMapEntry |
|---|
getIconColor |
| Constructor Detail |
|---|
public WeatherDataBean()
NullPointerException - if code is null| Method Detail |
|---|
public static WeatherDataBean create(WeatherDataBean.Type t)
t - the bean type
public Date getDate()
public String getCode()
public String getName()
public Date getCreatedOn()
public String getData()
public double getLatitude()
getLatitude in interface GeoLocationpublic double getLongitude()
getLongitude in interface GeoLocationpublic abstract WeatherDataBean.Type getType()
public void setDate(Date dt)
dt - the effective date/timepublic void setAirport(AirportLocation al)
al - an AirportLocation beanpublic void setAirport(Airport a)
a - an Airport beanpublic void setData(String data)
data - the datapublic String getInfoBox()
MapEntry
getInfoBox in interface MapEntrypublic Object cacheKey()
Cacheable
cacheKey in interface Cacheablepublic int compareTo(WeatherDataBean o)
compareTo in interface Comparable<WeatherDataBean>public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||