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