2 * fx_surface_format_hint_channels_enum.java
\r
4 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
\r
6 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
\r
7 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
\r
9 * Refer to the XMLSpy Documentation for further details.
\r
10 * http://www.altova.com/xmlspy
\r
14 package com.jmex.model.collada.schema;
\r
16 import com.jmex.xml.types.SchemaString;
\r
18 public class fx_surface_format_hint_channels_enum extends SchemaString {
\r
19 public static final int ERGB = 0; /* RGB */
\r
20 public static final int ERGBA = 1; /* RGBA */
\r
21 public static final int EL = 2; /* L */
\r
22 public static final int ELA = 3; /* LA */
\r
23 public static final int ED = 4; /* D */
\r
24 public static final int EXYZ = 5; /* XYZ */
\r
25 public static final int EXYZW = 6; /* XYZW */
\r
27 public static String[] sEnumValues = {
\r
37 public fx_surface_format_hint_channels_enum() {
\r
41 public fx_surface_format_hint_channels_enum(String newValue) {
\r
46 public fx_surface_format_hint_channels_enum(SchemaString newValue) {
\r
51 public static int getEnumerationCount() {
\r
52 return sEnumValues.length;
\r
55 public static String getEnumerationValue(int index) {
\r
56 return sEnumValues[index];
\r
59 public static boolean isValidEnumerationValue(String val) {
\r
60 for (int i = 0; i < sEnumValues.length; i++) {
\r
61 if (val.equals(sEnumValues[i]))
\r
67 public void validate() {
\r
69 if (!isValidEnumerationValue(toString()))
\r
70 throw new com.jmex.xml.xml.XmlException("Value of fx_surface_format_hint_channels_enum is invalid.");
\r