OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / gl_polygon_mode_type.java
1 /**\r
2  * gl_polygon_mode_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_polygon_mode_type extends SchemaString {\r
19         public static final int EPOINT = 0; /* POINT */\r
20         public static final int ELINE = 1; /* LINE */\r
21         public static final int EFILL = 2; /* FILL */\r
22 \r
23         public static String[] sEnumValues = {\r
24                 "POINT",\r
25                 "LINE",\r
26                 "FILL",\r
27         };\r
28 \r
29         public gl_polygon_mode_type() {\r
30                 super();\r
31         }\r
32 \r
33         public gl_polygon_mode_type(String newValue) {\r
34                 super(newValue);\r
35                 validate();\r
36         }\r
37 \r
38         public gl_polygon_mode_type(SchemaString newValue) {\r
39                 super(newValue);\r
40                 validate();\r
41         }\r
42 \r
43         public static int getEnumerationCount() {\r
44                 return sEnumValues.length;\r
45         }\r
46 \r
47         public static String getEnumerationValue(int index) {\r
48                 return sEnumValues[index];\r
49         }\r
50 \r
51         public static boolean isValidEnumerationValue(String val) {\r
52                 for (int i = 0; i < sEnumValues.length; i++) {\r
53                         if (val.equals(sEnumValues[i]))\r
54                                 return true;\r
55                 }\r
56                 return false;\r
57         }\r
58 \r
59         public void validate() {\r
60 \r
61                 if (!isValidEnumerationValue(toString()))\r
62                         throw new com.jmex.xml.xml.XmlException("Value of gl_polygon_mode_type is invalid.");\r
63         }\r
64 }\r