OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / gles_texcombiner_operatorAlpha_enums.java
1 /**\r
2  * gles_texcombiner_operatorAlpha_enums.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.SchemaToken;\r
17 \r
18 public class gles_texcombiner_operatorAlpha_enums extends SchemaToken {\r
19         public static final int EREPLACE = 0; /* REPLACE */\r
20         public static final int EMODULATE = 1; /* MODULATE */\r
21         public static final int EADD = 2; /* ADD */\r
22         public static final int EADD_SIGNED = 3; /* ADD_SIGNED */\r
23         public static final int EINTERPOLATE = 4; /* INTERPOLATE */\r
24         public static final int ESUBTRACT = 5; /* SUBTRACT */\r
25 \r
26         public static String[] sEnumValues = {\r
27                 "REPLACE",\r
28                 "MODULATE",\r
29                 "ADD",\r
30                 "ADD_SIGNED",\r
31                 "INTERPOLATE",\r
32                 "SUBTRACT",\r
33         };\r
34 \r
35         public gles_texcombiner_operatorAlpha_enums() {\r
36                 super();\r
37         }\r
38 \r
39         public gles_texcombiner_operatorAlpha_enums(String newValue) {\r
40                 super(newValue);\r
41                 validate();\r
42         }\r
43 \r
44         public gles_texcombiner_operatorAlpha_enums(SchemaToken newValue) {\r
45                 super(newValue);\r
46                 validate();\r
47         }\r
48 \r
49         public static int getEnumerationCount() {\r
50                 return sEnumValues.length;\r
51         }\r
52 \r
53         public static String getEnumerationValue(int index) {\r
54                 return sEnumValues[index];\r
55         }\r
56 \r
57         public static boolean isValidEnumerationValue(String val) {\r
58                 for (int i = 0; i < sEnumValues.length; i++) {\r
59                         if (val.equals(sEnumValues[i]))\r
60                                 return true;\r
61                 }\r
62                 return false;\r
63         }\r
64 \r
65         public void validate() {\r
66 \r
67                 if (!isValidEnumerationValue(toString()))\r
68                         throw new com.jmex.xml.xml.XmlException("Value of gles_texcombiner_operatorAlpha_enums is invalid.");\r
69         }\r
70 }\r