|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.plugin.weather.beans.NWSInformation
NWSInformation
| Field Summary | |
static java.lang.String |
NWS_URL_FORMAT
|
static java.lang.String |
TAG_CREDIT
|
static java.lang.String |
TAG_CREDIT_URL
|
static java.lang.String |
TAG_HISTORY
|
static java.lang.String |
TAG_HUMIDITY
|
static java.lang.String |
TAG_LOCATION
|
static java.lang.String |
TAG_OBSERVATION
|
static java.lang.String |
TAG_STATION
|
static java.lang.String |
TAG_TEMP_C
|
static java.lang.String |
TAG_TEMP_F
|
static java.lang.String |
TAG_TEMP_STRING
|
static java.lang.String |
TAG_VISIBILITY
|
static java.lang.String |
TAG_WEATHER
|
static java.lang.String |
TAG_WIND_DEGREES
|
static java.lang.String |
TAG_WIND_DIRECTION
|
static java.lang.String |
TAG_WIND_GUST_MPH
|
static java.lang.String |
TAG_WIND_MPH
|
static java.lang.String |
TAG_WIND_STRING
|
| Constructor Summary | |
NWSInformation(java.lang.String stationCode)
Public Constructor |
|
| Method Summary | |
java.lang.String |
getCelcius()
Get the current temperate as Celcius |
java.lang.String |
getFahrenheit()
Get the current temperature as Farenheit |
java.lang.String |
getHistoryUrl()
Get the URL containing a link to weather history information |
java.lang.String |
getLocation()
Get the Location of the Weather Station |
java.lang.String |
getProviderUrl()
Gets the URL required to fetch this resource |
java.lang.String |
getStationCode()
Get the Station Id |
java.lang.String |
getValueForTag(java.lang.String tag)
Get the value for a given tag from the parsed XML weather information |
java.lang.String |
getVisibility()
Get the current Visibility |
java.lang.String |
getWind()
Get the current Wind conditions |
void |
parseDocument(org.w3c.dom.Document document)
Parse an XML document containing weather related information |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NWS_URL_FORMAT
public static final java.lang.String TAG_CREDIT
public static final java.lang.String TAG_CREDIT_URL
public static final java.lang.String TAG_LOCATION
public static final java.lang.String TAG_OBSERVATION
public static final java.lang.String TAG_WEATHER
public static final java.lang.String TAG_TEMP_STRING
public static final java.lang.String TAG_TEMP_F
public static final java.lang.String TAG_TEMP_C
public static final java.lang.String TAG_HUMIDITY
public static final java.lang.String TAG_WIND_STRING
public static final java.lang.String TAG_WIND_DIRECTION
public static final java.lang.String TAG_WIND_DEGREES
public static final java.lang.String TAG_WIND_MPH
public static final java.lang.String TAG_WIND_GUST_MPH
public static final java.lang.String TAG_STATION
public static final java.lang.String TAG_VISIBILITY
public static final java.lang.String TAG_HISTORY
| Constructor Detail |
public NWSInformation(java.lang.String stationCode)
stationCode - The Provider Station Id| Method Detail |
public void parseDocument(org.w3c.dom.Document document)
parseDocument in interface WeatherInformationdocument - XML document with weather informationpublic java.lang.String getLocation()
getLocation in interface WeatherInformationpublic java.lang.String getStationCode()
getStationCode in interface WeatherInformationpublic java.lang.String getFahrenheit()
getFahrenheit in interface WeatherInformationpublic java.lang.String getCelcius()
getCelcius in interface WeatherInformationpublic java.lang.String getVisibility()
getVisibility in interface WeatherInformationpublic java.lang.String getWind()
getWind in interface WeatherInformationpublic java.lang.String getHistoryUrl()
getHistoryUrl in interface WeatherInformationpublic java.lang.String getProviderUrl()
getProviderUrl in interface WeatherInformationpublic java.lang.String getValueForTag(java.lang.String tag)
getValueForTag in interface WeatherInformationtag - Tag to retrieve
null if the tag is not present
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||