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 UpAxisType extends SchemaString {
\r
19 public static final int EX_UP = 0; /* X_UP */
\r
20 public static final int EY_UP = 1; /* Y_UP */
\r
21 public static final int EZ_UP = 2; /* Z_UP */
\r
23 public static String[] sEnumValues = {
\r
29 public UpAxisType() {
\r
33 public UpAxisType(String newValue) {
\r
38 public UpAxisType(SchemaString newValue) {
\r
43 public static int getEnumerationCount() {
\r
44 return sEnumValues.length;
\r
47 public static String getEnumerationValue(int index) {
\r
48 return sEnumValues[index];
\r
51 public static boolean isValidEnumerationValue(String val) {
\r
52 for (int i = 0; i < sEnumValues.length; i++) {
\r
53 if (val.equals(sEnumValues[i]))
\r
59 public void validate() {
\r
61 if (!isValidEnumerationValue(toString()))
\r
62 throw new com.jmex.xml.xml.XmlException("Value of UpAxisType is invalid.");
\r