OSDN Git Service

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