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

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

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

Units for various aspects of the forecast. Attributes:

Note that the default RSS feed uses Fahrenheit degree units and English units for all other attributes (miles, pounds per square inch, miles per hour). If Celsius has been specified as the degree units for the feed (using the u request parameter), all the units are in metric format (Celsius, kilometers, millibars, kilometers per hour).

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

Constructor Summary
Units()
          Simple constructor.
Units(java.lang.String temperature, java.lang.String distance, java.lang.String pressure, java.lang.String speed)
          Constructs a new Units object
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getDistance()
          Units of distance
 java.lang.String getPressure()
          Units of pressure
 java.lang.String getSpeed()
          Units of speed
 java.lang.String getTemperature()
          Units of Temperature.
 int hashCode()
           
 void setDistance(java.lang.String distance)
          Units of distance
 void setPressure(java.lang.String pressure)
          Units of pressure
 void setSpeed(java.lang.String speed)
          Units of speed
 void setTemperature(java.lang.String temperature)
          Units of Temperature.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Units

public Units()
Simple constructor.


Units

public Units(java.lang.String temperature,
             java.lang.String distance,
             java.lang.String pressure,
             java.lang.String speed)
Constructs a new Units object

Parameters:
temperature - units of temp ("f" or "c");
distance - units of distance ("mi" or "km")
pressure - units of pressure ("in" or "mb")
speed - units of speed ("mph" or "kph")
Method Detail

getTemperature

public java.lang.String getTemperature()
Units of Temperature.

Returns:
temperature units of temp ("f" or "c");

setTemperature

public void setTemperature(java.lang.String temperature)
Units of Temperature.

Parameters:
temperature - units of temp ("f" or "c");

getDistance

public java.lang.String getDistance()
Units of distance

Returns:
distance units of distance ("mi" or "km")

setDistance

public void setDistance(java.lang.String distance)
Units of distance

Parameters:
distance - units of distance ("mi" or "km")

getPressure

public java.lang.String getPressure()
Units of pressure

Returns:
units of pressure ("in" or "mb")

setPressure

public void setPressure(java.lang.String pressure)
Units of pressure

Parameters:
pressure - units of pressure ("in" or "mb")

getSpeed

public java.lang.String getSpeed()
Units of speed

Returns:
units of speed ("mph" or "kph")

setSpeed

public void setSpeed(java.lang.String speed)
Units of speed

Parameters:
speed - units of speed ("mph" or "kph")

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.