OSDN Git Service

Set optimal mime types and executable settings.
[mikumikustudio/MikuMikuStudio.git] / src / com / jmex / model / collada / schema / gl_alpha_value_type.java
1 /**\r
2  * gl_alpha_value_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.SchemaFloat;\r
17 \r
18 public class gl_alpha_value_type extends SchemaFloat {\r
19 \r
20         public gl_alpha_value_type() {\r
21                 super();\r
22         }\r
23 \r
24         public gl_alpha_value_type(String newValue) {\r
25                 super(newValue);\r
26                 validate();\r
27         }\r
28 \r
29         public gl_alpha_value_type(SchemaFloat newValue) {\r
30                 super(newValue);\r
31                 validate();\r
32         }\r
33 \r
34         public void validate() {\r
35 \r
36                 if (compareTo(getMaxInclusive()) > 0)\r
37                         throw new com.jmex.xml.xml.XmlException("Value of gl_alpha_value_type is out of range.");\r
38 \r
39                 if (compareTo(getMinInclusive()) < 0)\r
40                         throw new com.jmex.xml.xml.XmlException("Value of gl_alpha_value_type is out of range.");\r
41         }\r
42         public SchemaFloat getMaxInclusive() {\r
43                 return new SchemaFloat("1.0");\r
44         }\r
45         public SchemaFloat getMinInclusive() {\r
46                 return new SchemaFloat("0.0");\r
47         }\r
48 }\r