Class ConditionCode
- java.lang.Object
-
- com.rometools.modules.yahooweather.types.ConditionCode
-
- All Implemented Interfaces:
Serializable
public class ConditionCode extends Object implements 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 - See Also:
- Serialized Form
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ConditionCodefromCode(int code)Returns a condition code instance for a given integerintgetCode()The integer code for this conditionStringgetDescription()Text description of condition (from the table at top of class)inthashCode()StringtoString()
-
-
-
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 String getDescription()
Text description of condition (from the table at top of class)
-
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
-
-