Email Answering System
Version 1.0

com.ninecode.email.beans.slave.weather
Class WeatherBean

java.lang.Object
  |
  +--com.ninecode.email.util.WebBean
        |
        +--com.ninecode.email.beans.slave.weather.WeatherBean

public class WeatherBean
extends WebBean

Fetch weather info from weatheroffice.ec.gc.ca.

Author:
Derrick Oswald

Field Summary
protected  String mCode
          The airport code of the city requested.
 
Fields inherited from class com.ninecode.email.util.WebBean
mBufferSize, mUrl, newline, newline_size
 
Constructor Summary
WeatherBean()
          Creates a new instance of WeatherBean
 
Method Summary
 String findCity(String city_province)
           
 String findCode(String content)
           
 String getCities()
           
 String getCity(String code)
           
 String getCode()
          Getter for property code.
 String getText()
           
 String help()
           
 void setCode(String code)
          Setter for property code.
 void setText(String text)
           
 String toString()
          Generate a string representing the state of this bean.
 
Methods inherited from class com.ninecode.email.util.WebBean
carriage_return, collapse, getContent, getContent, getContent, getURL, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mCode

protected String mCode
The airport code of the city requested.

Constructor Detail

WeatherBean

public WeatherBean()
Creates a new instance of WeatherBean

Method Detail

getCode

public String getCode()
Getter for property code.

Returns:
Value of property code.

setCode

public void setCode(String code)
Setter for property code.

Parameters:
code - New value of property code. It must be one of the known airport code strings.

findCity

public String findCity(String city_province)

findCode

public String findCode(String content)

getCities

public String getCities()

getCity

public String getCity(String code)

help

public String help()

setText

public void setText(String text)

getText

public String getText()

toString

public String toString()
Generate a string representing the state of this bean.

Overrides:
toString in class WebBean
Returns:
A string of the form:
 Edmonton Alberta
 

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.