2 * gles_stencil_op_type.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 gles_stencil_op_type extends SchemaString {
\r
19 public static final int EKEEP = 0; /* KEEP */
\r
20 public static final int EZERO = 1; /* ZERO */
\r
21 public static final int EREPLACE = 2; /* REPLACE */
\r
22 public static final int EINCR = 3; /* INCR */
\r
23 public static final int EDECR = 4; /* DECR */
\r
24 public static final int EINVERT = 5; /* INVERT */
\r
26 public static String[] sEnumValues = {
\r
35 public gles_stencil_op_type() {
\r
39 public gles_stencil_op_type(String newValue) {
\r
44 public gles_stencil_op_type(SchemaString newValue) {
\r
49 public static int getEnumerationCount() {
\r
50 return sEnumValues.length;
\r
53 public static String getEnumerationValue(int index) {
\r
54 return sEnumValues[index];
\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
65 public void validate() {
\r
67 if (!isValidEnumerationValue(toString()))
\r
68 throw new com.jmex.xml.xml.XmlException("Value of gles_stencil_op_type is invalid.");
\r