KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > capeclear > www > GlobalWeather_xsd > PhenomenonType


1 /**
2  * PhenomenonType.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package com.capeclear.www.GlobalWeather_xsd;
9
10 import java.io.Serializable;
11 import java.io.ObjectStreamException;
12
13 public class PhenomenonType implements Serializable {
14     private String _value_;
15     private static java.util.HashMap _table_ = new java.util.HashMap();
16
17     // Constructor
18
protected PhenomenonType(String value) {
19         _value_ = value;
20         _table_.put(_value_,this);
21     }
22
23     public static final String _MIST = "MIST";
24     public static final String _FOG = "FOG";
25     public static final String _CLOUD = "CLOUD";
26     public static final String _TOWERING_CUMULUS = "TOWERING_CUMULUS";
27     public static final String _CUMULONIMBUS = "CUMULONIMBUS";
28     public static final String _PRECIPITATION = "PRECIPITATION";
29     public static final String _SHOWERS = "SHOWERS";
30     public static final String _DRIZZLE = "DRIZZLE";
31     public static final String _RAIN = "RAIN";
32     public static final String _SPRAY = "SPRAY";
33     public static final String _DIAMOND_DUST = "DIAMOND_DUST";
34     public static final String _SNOW = "SNOW";
35     public static final String _SNOW_GRAINS = "SNOW_GRAINS";
36     public static final String _ICE_PELLETS = "ICE_PELLETS";
37     public static final String _SMALL_HAIL = "SMALL_HAIL";
38     public static final String _LARGE_HAIL = "LARGE_HAIL";
39     public static final String _HAZE = "HAZE";
40     public static final String _SMOKE = "SMOKE";
41     public static final String _DUST = "DUST";
42     public static final String _SAND = "SAND";
43     public static final String _VOLCANIC_ASH = "VOLCANIC_ASH";
44     public static final String _WHIRLS = "WHIRLS";
45     public static final String _SQUALLS = "SQUALLS";
46     public static final String _LIGHTNING = "LIGHTNING";
47     public static final String _DUSTSTORM = "DUSTSTORM";
48     public static final String _SANDSTORM = "SANDSTORM";
49     public static final String _THUNDERSTORM = "THUNDERSTORM";
50     public static final String _TORNADIC = "TORNADIC";
51     public static final String _UNKNOWN = "UNKNOWN";
52     public static final PhenomenonType MIST = new PhenomenonType(_MIST);
53     public static final PhenomenonType FOG = new PhenomenonType(_FOG);
54     public static final PhenomenonType CLOUD = new PhenomenonType(_CLOUD);
55     public static final PhenomenonType TOWERING_CUMULUS = new PhenomenonType(_TOWERING_CUMULUS);
56     public static final PhenomenonType CUMULONIMBUS = new PhenomenonType(_CUMULONIMBUS);
57     public static final PhenomenonType PRECIPITATION = new PhenomenonType(_PRECIPITATION);
58     public static final PhenomenonType SHOWERS = new PhenomenonType(_SHOWERS);
59     public static final PhenomenonType DRIZZLE = new PhenomenonType(_DRIZZLE);
60     public static final PhenomenonType RAIN = new PhenomenonType(_RAIN);
61     public static final PhenomenonType SPRAY = new PhenomenonType(_SPRAY);
62     public static final PhenomenonType DIAMOND_DUST = new PhenomenonType(_DIAMOND_DUST);
63     public static final PhenomenonType SNOW = new PhenomenonType(_SNOW);
64     public static final PhenomenonType SNOW_GRAINS = new PhenomenonType(_SNOW_GRAINS);
65     public static final PhenomenonType ICE_PELLETS = new PhenomenonType(_ICE_PELLETS);
66     public static final PhenomenonType SMALL_HAIL = new PhenomenonType(_SMALL_HAIL);
67     public static final PhenomenonType LARGE_HAIL = new PhenomenonType(_LARGE_HAIL);
68     public static final PhenomenonType HAZE = new PhenomenonType(_HAZE);
69     public static final PhenomenonType SMOKE = new PhenomenonType(_SMOKE);
70     public static final PhenomenonType DUST = new PhenomenonType(_DUST);
71     public static final PhenomenonType SAND = new PhenomenonType(_SAND);
72     public static final PhenomenonType VOLCANIC_ASH = new PhenomenonType(_VOLCANIC_ASH);
73     public static final PhenomenonType WHIRLS = new PhenomenonType(_WHIRLS);
74     public static final PhenomenonType SQUALLS = new PhenomenonType(_SQUALLS);
75     public static final PhenomenonType LIGHTNING = new PhenomenonType(_LIGHTNING);
76     public static final PhenomenonType DUSTSTORM = new PhenomenonType(_DUSTSTORM);
77     public static final PhenomenonType SANDSTORM = new PhenomenonType(_SANDSTORM);
78     public static final PhenomenonType THUNDERSTORM = new PhenomenonType(_THUNDERSTORM);
79     public static final PhenomenonType TORNADIC = new PhenomenonType(_TORNADIC);
80     public static final PhenomenonType UNKNOWN = new PhenomenonType(_UNKNOWN);
81     
82     public String getValue() {
83         return _value_;
84     }
85     public static PhenomenonType fromValue(String value) throws IllegalStateException {
86         PhenomenonType enum = (PhenomenonType) _table_.get(value);
87         if (enum==null) throw new IllegalStateException();
88         return enum;
89     }
90     public static PhenomenonType fromString(String value)
91           throws IllegalStateException {
92         return fromValue(value);
93     }
94     public boolean equals(Object obj) {return (obj == this);}
95     public int hashCode() { return toString().hashCode();}
96     public String toString() { return _value_;}
97     public Object readResolve() throws ObjectStreamException { return fromValue(_value_);}
98 }
99
Popular Tags