KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * ExtremeType.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
13 public class ExtremeType implements Serializable {
14     private String _value_;
15     private static HashMap _table_ = new HashMap();
16
17     // Constructor
18
protected ExtremeType(String value) {
19         _value_ = value;
20         _table_.put(_value_,this);
21     }
22
23     public static final String _HIGH = "HIGH";
24     public static final String _LOW = "LOW";
25     public static final ExtremeType HIGH = new ExtremeType(_HIGH);
26     public static final ExtremeType LOW = new ExtremeType(_LOW);
27     public String getValue() { return _value_;}
28     public static ExtremeType fromValue(String value)
29           throws IllegalStateException {
30         ExtremeType enum = (ExtremeType)
31             _table_.get(value);
32         if (enum==null) throw new IllegalStateException();
33         return enum;
34     }
35     public static ExtremeType fromString(String value)
36           throws IllegalStateException {
37         return fromValue(value);
38     }
39     public boolean equals(Object obj) {return (obj == this);}
40     public int hashCode() { return toString().hashCode();}
41     public String toString() { return _value_;}
42     public Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
43 }
44
Popular Tags