KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * PhenomenonIntensity.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.util.HashMap;
12 import java.io.ObjectStreamException;
13
14 public class PhenomenonIntensity implements Serializable {
15     private String _value_;
16     private static HashMap _table_ = new HashMap();
17
18     // Constructor
19
protected PhenomenonIntensity(String value) {
20         _value_ = value;
21         _table_.put(_value_,this);
22     }
23
24     public static final String _DISTANT = "DISTANT";
25     public static final String _NEARBY = "NEARBY";
26     public static final String _LIGHT = "LIGHT";
27     public static final String _MODERATE = "MODERATE";
28     public static final String _HEAVY = "HEAVY";
29     public static final PhenomenonIntensity DISTANT = new PhenomenonIntensity(_DISTANT);
30     public static final PhenomenonIntensity NEARBY = new PhenomenonIntensity(_NEARBY);
31     public static final PhenomenonIntensity LIGHT = new PhenomenonIntensity(_LIGHT);
32     public static final PhenomenonIntensity MODERATE = new PhenomenonIntensity(_MODERATE);
33     public static final PhenomenonIntensity HEAVY = new PhenomenonIntensity(_HEAVY);
34     public String getValue() { return _value_;}
35     public static PhenomenonIntensity fromValue(String value)
36           throws IllegalStateException {
37         PhenomenonIntensity enum = (PhenomenonIntensity)
38             _table_.get(value);
39         if (enum==null) throw new IllegalStateException();
40         return enum;
41     }
42     public static PhenomenonIntensity fromString(String value)
43           throws IllegalStateException {
44         return fromValue(value);
45     }
46     public boolean equals(Object obj) {return (obj == this);}
47     public int hashCode() { return toString().hashCode();}
48     public String toString() { return _value_;}
49     public Object readResolve() throws ObjectStreamException { return fromValue(_value_);}
50 }
51
Popular Tags