KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > jbws718 > CredentialRetrievalEnum


1 // This class was generated by the JAXRPC SI, do not edit.
2
// Contents subject to change without notice.
3
// JAX-RPC Standard Implementation (1.1.3, build R1)
4
// Generated source version: 1.1.3
5

6 package org.jboss.test.webservice.jbws718;
7
8
9 import java.util.Map JavaDoc;
10 import java.util.HashMap JavaDoc;
11
12 public class CredentialRetrievalEnum {
13     private java.lang.String JavaDoc value;
14     private static java.util.Map JavaDoc valueMap = new HashMap JavaDoc();
15     public static final java.lang.String JavaDoc _PromptString = "Prompt";
16     public static final java.lang.String JavaDoc _StoreString = "Store";
17     public static final java.lang.String JavaDoc _IntegratedString = "Integrated";
18     public static final java.lang.String JavaDoc _NoneString = "None";
19     
20     public static final java.lang.String JavaDoc _Prompt = new java.lang.String JavaDoc(_PromptString);
21     public static final java.lang.String JavaDoc _Store = new java.lang.String JavaDoc(_StoreString);
22     public static final java.lang.String JavaDoc _Integrated = new java.lang.String JavaDoc(_IntegratedString);
23     public static final java.lang.String JavaDoc _None = new java.lang.String JavaDoc(_NoneString);
24     
25     public static final CredentialRetrievalEnum Prompt = new CredentialRetrievalEnum(_Prompt);
26     public static final CredentialRetrievalEnum Store = new CredentialRetrievalEnum(_Store);
27     public static final CredentialRetrievalEnum Integrated = new CredentialRetrievalEnum(_Integrated);
28     public static final CredentialRetrievalEnum None = new CredentialRetrievalEnum(_None);
29     
30     protected CredentialRetrievalEnum(java.lang.String JavaDoc value) {
31         this.value = value;
32         valueMap.put(this.toString(), this);
33     }
34     
35     public java.lang.String JavaDoc getValue() {
36         return value;
37     }
38     
39     public static CredentialRetrievalEnum fromValue(java.lang.String JavaDoc value)
40         throws java.lang.IllegalStateException JavaDoc {
41         if (Prompt.value.equals(value)) {
42             return Prompt;
43         } else if (Store.value.equals(value)) {
44             return Store;
45         } else if (Integrated.value.equals(value)) {
46             return Integrated;
47         } else if (None.value.equals(value)) {
48             return None;
49         }
50         throw new java.lang.IllegalArgumentException JavaDoc();
51     }
52     
53     public static CredentialRetrievalEnum fromString(java.lang.String JavaDoc value)
54         throws java.lang.IllegalStateException JavaDoc {
55         CredentialRetrievalEnum ret = (CredentialRetrievalEnum)valueMap.get(value);
56         if (ret != null) {
57             return ret;
58         }
59         if (value.equals(_PromptString)) {
60             return Prompt;
61         } else if (value.equals(_StoreString)) {
62             return Store;
63         } else if (value.equals(_IntegratedString)) {
64             return Integrated;
65         } else if (value.equals(_NoneString)) {
66             return None;
67         }
68         throw new IllegalArgumentException JavaDoc();
69     }
70     
71     public java.lang.String JavaDoc toString() {
72         return value.toString();
73     }
74     
75     private java.lang.Object JavaDoc readResolve()
76         throws java.io.ObjectStreamException JavaDoc {
77         return fromValue(getValue());
78     }
79     
80     public boolean equals(java.lang.Object JavaDoc obj) {
81         if (!(obj instanceof CredentialRetrievalEnum)) {
82             return false;
83         }
84         return ((CredentialRetrievalEnum)obj).value.equals(value);
85     }
86     
87     public int hashCode() {
88         return value.hashCode();
89     }
90 }
91
Popular Tags