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

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

public class ConditionCode
extends java.lang.Object
implements java.io.Serializable

Condition Codes

Condition codes are used in the yweather:forecast element to describe the current conditions.

Code Description
0 tornado
1 tropical storm
2 hurricane
3 severe thunderstorms
4 thunderstorms
5 mixed rain and snow
6 mixed rain and sleet
7 mixed snow and sleet
8 freezing drizzle
9 drizzle
10 freezing rain
11 showers
12 showers
13 snow flurries
14 light snow showers
15 blowing snow
16 snow
17 hail
18 sleet
19 dust
20 foggy
21 haze
22 smoky
23 blustery
24 windy
25 cold
26 cloudy
27 mostly cloudy (night)
28 mostly cloudy (day)
29 partly cloudy (night)
30 partly cloudy (day)
31 clear (night)
32 sunny
33 fair (night)
34 fair (day)
35 mixed rain and hail
36 hot
37 isolated thunderstorms
38 scattered thunderstorms
39 scattered thunderstorms
40 scattered showers
41 heavy snow
42 scattered snow showers
43 heavy snow
44 partly cloudy
45 thundershowers
46 snow showers
47 isolated thundershowers
3200 not available

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

Field Summary
static ConditionCode BLOWING_SNOW
           
static ConditionCode BLUSTERY
           
static ConditionCode CLEAR_NIGHT
           
static ConditionCode CLOUDY
           
static ConditionCode COLD
           
static ConditionCode DRIZZLE
           
static ConditionCode DUST
           
static ConditionCode FAIR_DAY
           
static ConditionCode FAIR_NIGHT
           
static ConditionCode FLURRIES
           
static ConditionCode FOGGY
           
static ConditionCode FREEZING_DRIZZLE
           
static ConditionCode FREEZING_RAIN
           
static ConditionCode HAIL
           
static ConditionCode HAZE
           
static ConditionCode HEAVY_SNOW
           
static ConditionCode HEAVY_SNOW_WINDY
           
static ConditionCode HOT
           
static ConditionCode HURRICANE
           
static ConditionCode ISLOATED_THUNDERSHOWERS
           
static ConditionCode ISOLATED_THUNDERSTORMS
           
static ConditionCode LIGHT_SNOW_SHOWERS
           
static ConditionCode MIXED_RAIN_AND_HAIL
           
static ConditionCode MIXED_RAIN_AND_SLEET
           
static ConditionCode MIXED_RAIN_AND_SNOW
           
static ConditionCode MIXED_SNOW_AND_SLEET
           
static ConditionCode MOSTLY_CLOUDY_DAY
           
static ConditionCode MOSTLY_CLOUDY_NIGHT
           
static ConditionCode NOT_AVAILABLE
           
static ConditionCode PARTLY_CLOUDY
           
static ConditionCode PARTLY_CLOUDY_DAY
           
static ConditionCode PARTLY_CLOUDY_NIGHT
           
static ConditionCode SCATTERED_SHOWERS
           
static ConditionCode SCATTERED_SNOW_SHOWERS
           
static ConditionCode SCATTERED_THUNDERSTORMS_HEAVY
           
static ConditionCode SCATTERED_THUNDERSTORMS_LIGHT
           
static ConditionCode SEVERE_THUNDERSTORMS
           
static ConditionCode SHOW_SHOWERS
           
static ConditionCode SHOWERS_HEAVY
           
static ConditionCode SHOWERS_LIGHT
           
static ConditionCode SLEET
           
static ConditionCode SMOKY
           
static ConditionCode SNOW
           
static ConditionCode SUNNY
           
static ConditionCode THUNDERSHOWERS
           
static ConditionCode THUNDERSTORMS
           
static ConditionCode TORNADO
           
static ConditionCode TROPICAL_STORM
           
static ConditionCode WINDY
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static ConditionCode fromCode(int code)
          Returns a condition code instance for a given integer
 int getCode()
          The integer code for this condition
 java.lang.String getDescription()
          Text description of condition (from the table at top of class)
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TORNADO

public static final ConditionCode TORNADO

TROPICAL_STORM

public static final ConditionCode TROPICAL_STORM

HURRICANE

public static final ConditionCode HURRICANE

SEVERE_THUNDERSTORMS

public static final ConditionCode SEVERE_THUNDERSTORMS

THUNDERSTORMS

public static final ConditionCode THUNDERSTORMS

MIXED_RAIN_AND_SNOW

public static final ConditionCode MIXED_RAIN_AND_SNOW

MIXED_RAIN_AND_SLEET

public static final ConditionCode MIXED_RAIN_AND_SLEET

MIXED_SNOW_AND_SLEET

public static final ConditionCode MIXED_SNOW_AND_SLEET

FREEZING_DRIZZLE

public static final ConditionCode FREEZING_DRIZZLE

DRIZZLE

public static final ConditionCode DRIZZLE

FREEZING_RAIN

public static final ConditionCode FREEZING_RAIN

SHOWERS_LIGHT

public static final ConditionCode SHOWERS_LIGHT

SHOWERS_HEAVY

public static final ConditionCode SHOWERS_HEAVY

FLURRIES

public static final ConditionCode FLURRIES

LIGHT_SNOW_SHOWERS

public static final ConditionCode LIGHT_SNOW_SHOWERS

BLOWING_SNOW

public static final ConditionCode BLOWING_SNOW

SNOW

public static final ConditionCode SNOW

HAIL

public static final ConditionCode HAIL

SLEET

public static final ConditionCode SLEET

DUST

public static final ConditionCode DUST

FOGGY

public static final ConditionCode FOGGY

HAZE

public static final ConditionCode HAZE

SMOKY

public static final ConditionCode SMOKY

BLUSTERY

public static final ConditionCode BLUSTERY

WINDY

public static final ConditionCode WINDY

COLD

public static final ConditionCode COLD

CLOUDY

public static final ConditionCode CLOUDY

MOSTLY_CLOUDY_NIGHT

public static final ConditionCode MOSTLY_CLOUDY_NIGHT

MOSTLY_CLOUDY_DAY

public static final ConditionCode MOSTLY_CLOUDY_DAY

PARTLY_CLOUDY_NIGHT

public static final ConditionCode PARTLY_CLOUDY_NIGHT

PARTLY_CLOUDY_DAY

public static final ConditionCode PARTLY_CLOUDY_DAY

CLEAR_NIGHT

public static final ConditionCode CLEAR_NIGHT

SUNNY

public static final ConditionCode SUNNY

FAIR_NIGHT

public static final ConditionCode FAIR_NIGHT

FAIR_DAY

public static final ConditionCode FAIR_DAY

MIXED_RAIN_AND_HAIL

public static final ConditionCode MIXED_RAIN_AND_HAIL

HOT

public static final ConditionCode HOT

ISOLATED_THUNDERSTORMS

public static final ConditionCode ISOLATED_THUNDERSTORMS

SCATTERED_THUNDERSTORMS_HEAVY

public static final ConditionCode SCATTERED_THUNDERSTORMS_HEAVY

SCATTERED_THUNDERSTORMS_LIGHT

public static final ConditionCode SCATTERED_THUNDERSTORMS_LIGHT

SCATTERED_SHOWERS

public static final ConditionCode SCATTERED_SHOWERS

HEAVY_SNOW

public static final ConditionCode HEAVY_SNOW

SCATTERED_SNOW_SHOWERS

public static final ConditionCode SCATTERED_SNOW_SHOWERS

HEAVY_SNOW_WINDY

public static final ConditionCode HEAVY_SNOW_WINDY

PARTLY_CLOUDY

public static final ConditionCode PARTLY_CLOUDY

THUNDERSHOWERS

public static final ConditionCode THUNDERSHOWERS

SHOW_SHOWERS

public static final ConditionCode SHOW_SHOWERS

ISLOATED_THUNDERSHOWERS

public static final ConditionCode ISLOATED_THUNDERSHOWERS

NOT_AVAILABLE

public static final ConditionCode NOT_AVAILABLE
Method Detail

getCode

public int getCode()
The integer code for this condition

Returns:
int code value

getDescription

public java.lang.String getDescription()
Text description of condition (from the table at top of class)

Returns:

fromCode

public static ConditionCode fromCode(int code)
Returns a condition code instance for a given integer

Parameters:
code - integer code to search for
Returns:
a ConditionCode instance or null

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


Copyright © 2006-2009. All Rights Reserved.