View Javadoc
1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package org.exolab.castor.mapping.xml.types;
9   
10  /**
11   * Enumeration FieldMappingCollectionType.
12   * 
13   * @version $Revision$ $Date$
14   */
15  public enum FieldMappingCollectionType {
16  
17  
18        //------------------/
19       //- Enum Constants -/
20      //------------------/
21  
22      /**
23       * Constant ARRAY
24       */
25      ARRAY("array"),
26      /**
27       * Constant VECTOR
28       */
29      VECTOR("vector"),
30      /**
31       * Constant ARRAYLIST
32       */
33      ARRAYLIST("arraylist"),
34      /**
35       * Constant PRIORITYQUEUE
36       */
37      PRIORITYQUEUE("priorityqueue"),
38      /**
39       * Constant HASHTABLE
40       */
41      HASHTABLE("hashtable"),
42      /**
43       * Constant COLLECTION
44       */
45      COLLECTION("collection"),
46      /**
47       * Constant SET
48       */
49      SET("set"),
50      /**
51       * Constant MAP
52       */
53      MAP("map"),
54      /**
55       * Constant ENUMERATE
56       */
57      ENUMERATE("enumerate"),
58      /**
59       * Constant SORTEDSET
60       */
61      SORTEDSET("sortedset"),
62      /**
63       * Constant ITERATOR
64       */
65      ITERATOR("iterator"),
66      /**
67       * Constant SORTEDMAP
68       */
69      SORTEDMAP("sortedmap");
70  
71        //--------------------------/
72       //- Class/Member Variables -/
73      //--------------------------/
74  
75      /**
76       * Field value.
77       */
78      private final java.lang.String value;
79  
80      /**
81       * Field enumConstants.
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       //- Constructors -/
96      //----------------/
97  
98      private FieldMappingCollectionType(final java.lang.String value) {
99          this.value = value;
100     }
101 
102 
103       //-----------/
104      //- Methods -/
105     //-----------/
106 
107     /**
108      * Method fromValue.
109      * 
110      * @param value
111      * @return the constant for this value
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      * @param value
126      */
127     public void setValue(
128             final java.lang.String value) {
129     }
130 
131     /**
132      * Method toString.
133      * 
134      * @return the value of this constant
135      */
136     public java.lang.String toString(
137     ) {
138         return this.value;
139     }
140 
141     /**
142      * Method value.
143      * 
144      * @return the value of this constant
145      */
146     public java.lang.String value(
147     ) {
148         return this.value;
149     }
150 
151 }