OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / gl_front_face_type.java
1 /**\r
2  * gl_front_face_type.java\r
3  *\r
4  * This file was generated by XMLSpy 2007sp2 Enterprise Edition.\r
5  *\r
6  * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE\r
7  * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.\r
8  *\r
9  * Refer to the XMLSpy Documentation for further details.\r
10  * http://www.altova.com/xmlspy\r
11  */\r
12 \r
13 \r
14 package com.jmex.model.collada.schema;\r
15 \r
16 import com.jmex.xml.types.SchemaString;\r
17 \r
18 public class gl_front_face_type extends SchemaString {\r
19         public static final int ECW = 0; /* CW */\r
20         public static final int ECCW = 1; /* CCW */\r
21 \r
22         public static String[] sEnumValues = {\r
23                 "CW",\r
24                 "CCW",\r
25         };\r
26 \r
27         public gl_front_face_type() {\r
28                 super();\r
29         }\r
30 \r
31         public gl_front_face_type(String newValue) {\r
32                 super(newValue);\r
33                 validate();\r
34         }\r
35 \r
36         public gl_front_face_type(SchemaString newValue) {\r
37                 super(newValue);\r
38                 validate();\r
39         }\r
40 \r
41         public static int getEnumerationCount() {\r
42                 return sEnumValues.length;\r
43         }\r
44 \r
45         public static String getEnumerationValue(int index) {\r
46                 return sEnumValues[index];\r
47         }\r
48 \r
49         public static boolean isValidEnumerationValue(String val) {\r
50                 for (int i = 0; i < sEnumValues.length; i++) {\r
51                         if (val.equals(sEnumValues[i]))\r
52                                 return true;\r
53                 }\r
54                 return false;\r
55         }\r
56 \r
57         public void validate() {\r
58 \r
59                 if (!isValidEnumerationValue(toString()))\r
60                         throw new com.jmex.xml.xml.XmlException("Value of gl_front_face_type is invalid.");\r
61         }\r
62 }\r