1
2
3
4
5
6
7
8 package org.exolab.castor.mapping.xml.types;
9
10
11
12
13
14
15 public enum FieldMappingCollectionType {
16
17
18
19
20
21
22
23
24
25 ARRAY("array"),
26
27
28
29 VECTOR("vector"),
30
31
32
33 ARRAYLIST("arraylist"),
34
35
36
37 PRIORITYQUEUE("priorityqueue"),
38
39
40
41 HASHTABLE("hashtable"),
42
43
44
45 COLLECTION("collection"),
46
47
48
49 SET("set"),
50
51
52
53 MAP("map"),
54
55
56
57 ENUMERATE("enumerate"),
58
59
60
61 SORTEDSET("sortedset"),
62
63
64
65 ITERATOR("iterator"),
66
67
68
69 SORTEDMAP("sortedmap");
70
71
72
73
74
75
76
77
78 private final java.lang.String value;
79
80
81
82
83 private static final java.util.Map<java.lang.String, FieldMappingCollectionType> enumConstants = new java.util.HashMap<java.lang.String, FieldMappingCollectionType>();
84
85
86 static {
87 for (FieldMappingCollectionType c: FieldMappingCollectionType.values()) {
88 FieldMappingCollectionType.enumConstants.put(c.value, c);
89 }
90
91 };
92
93
94
95
96
97
98 private FieldMappingCollectionType(final java.lang.String value) {
99 this.value = value;
100 }
101
102
103
104
105
106
107
108
109
110
111
112
113 public static org.exolab.castor.mapping.xml.types.FieldMappingCollectionType fromValue(
114 final java.lang.String value) {
115 FieldMappingCollectionType c = FieldMappingCollectionType.enumConstants.get(value);
116 if (c != null) {
117 return c;
118 }
119 throw new IllegalArgumentException(value);
120 }
121
122
123
124
125
126
127 public void setValue(
128 final java.lang.String value) {
129 }
130
131
132
133
134
135
136 public java.lang.String toString(
137 ) {
138 return this.value;
139 }
140
141
142
143
144
145
146 public java.lang.String value(
147 ) {
148 return this.value;
149 }
150
151 }