com.sun.syndication.feed.module.yahooweather.types
Class Condition

java.lang.Object
  extended by com.sun.syndication.feed.module.yahooweather.types.Condition
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Condition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

The current weather conditions. Attributes:

Version:
$Id: Condition.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
Condition()
          Simple constructor
Condition(java.lang.String text, ConditionCode code, int temperature, java.util.Date date)
          Constructs a new Condition.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 ConditionCode getCode()
          Condition code
 java.util.Date getDate()
          Date recorded
 int getTemperature()
          Current Temperature
 java.lang.String getText()
          Description of condition
 int hashCode()
           
 void setCode(ConditionCode code)
          Condition code
 void setDate(java.util.Date date)
          Date recorded
 void setTemperature(int temperature)
          Current Temperature
 void setText(java.lang.String text)
          Description of condition
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Condition

public Condition()
Simple constructor


Condition

public Condition(java.lang.String text,
                 ConditionCode code,
                 int temperature,
                 java.util.Date date)
Constructs a new Condition.

Parameters:
text - a textual description of conditions, for example, "Partly Cloudy"
code - the condition code for this forecast.
temperature - the current temperature
date - the current date and time
Method Detail

getText

public java.lang.String getText()
Description of condition

Returns:
a textual description of conditions, for example, "Partly Cloudy"

setText

public void setText(java.lang.String text)
Description of condition

Parameters:
text - a textual description of conditions, for example, "Partly Cloudy"

getCode

public ConditionCode getCode()
Condition code

Returns:
condition code

setCode

public void setCode(ConditionCode code)
Condition code

Parameters:
code - Condition code

getTemperature

public int getTemperature()
Current Temperature

Returns:
the current temperature
See Also:
Units

setTemperature

public void setTemperature(int temperature)
Current Temperature

Parameters:
temperature - the current temperature
See Also:
Units

getDate

public java.util.Date getDate()
Date recorded

Returns:
the current date and time

setDate

public void setDate(java.util.Date date)
Date recorded

Parameters:
date - the current date and time

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.