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 BindXmlAutoNamingType.
12   * 
13   * @version $Revision$ $Date$
14   */
15  public enum BindXmlAutoNamingType {
16  
17  
18        //------------------/
19       //- Enum Constants -/
20      //------------------/
21  
22      /**
23       * Constant DERIVEBYCLASS
24       */
25      DERIVEBYCLASS("deriveByClass"),
26      /**
27       * Constant DERIVEBYFIELD
28       */
29      DERIVEBYFIELD("deriveByField");
30  
31        //--------------------------/
32       //- Class/Member Variables -/
33      //--------------------------/
34  
35      /**
36       * Field value.
37       */
38      private final java.lang.String value;
39  
40      /**
41       * Field enumConstants.
42       */
43      private static final java.util.Map<java.lang.String, BindXmlAutoNamingType> enumConstants = new java.util.HashMap<java.lang.String, BindXmlAutoNamingType>();
44  
45  
46      static {
47          for (BindXmlAutoNamingType c: BindXmlAutoNamingType.values()) {
48              BindXmlAutoNamingType.enumConstants.put(c.value, c);
49          }
50  
51      };
52  
53  
54        //----------------/
55       //- Constructors -/
56      //----------------/
57  
58      private BindXmlAutoNamingType(final java.lang.String value) {
59          this.value = value;
60      }
61  
62  
63        //-----------/
64       //- Methods -/
65      //-----------/
66  
67      /**
68       * Method fromValue.
69       * 
70       * @param value
71       * @return the constant for this value
72       */
73      public static org.exolab.castor.mapping.xml.types.BindXmlAutoNamingType fromValue(
74              final java.lang.String value) {
75          BindXmlAutoNamingType c = BindXmlAutoNamingType.enumConstants.get(value);
76          if (c != null) {
77              return c;
78          }
79          throw new IllegalArgumentException(value);
80      }
81  
82      /**
83       * 
84       * 
85       * @param value
86       */
87      public void setValue(
88              final java.lang.String value) {
89      }
90  
91      /**
92       * Method toString.
93       * 
94       * @return the value of this constant
95       */
96      public java.lang.String toString(
97      ) {
98          return this.value;
99      }
100 
101     /**
102      * Method value.
103      * 
104      * @return the value of this constant
105      */
106     public java.lang.String value(
107     ) {
108         return this.value;
109     }
110 
111 }