fx_surface_format_hint_range_enum.java

来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 69 行

JAVA
69
字号
/**
 * fx_surface_format_hint_range_enum.java
 *
 * This file was generated by XMLSpy 2007sp2 Enterprise Edition.
 *
 * YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
 * OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
 *
 * Refer to the XMLSpy Documentation for further details.
 * http://www.altova.com/xmlspy
 */


package com.jmex.model.collada.schema;

import com.jmex.xml.types.SchemaString;

public class fx_surface_format_hint_range_enum extends SchemaString {
	public static final int ESNORM = 0; /* SNORM */
	public static final int EUNORM = 1; /* UNORM */
	public static final int ESINT = 2; /* SINT */
	public static final int EUINT = 3; /* UINT */
	public static final int EFLOAT = 4; /* FLOAT */

	public static String[] sEnumValues = {
		"SNORM",
		"UNORM",
		"SINT",
		"UINT",
		"FLOAT",
	};

	public fx_surface_format_hint_range_enum() {
		super();
	}

	public fx_surface_format_hint_range_enum(String newValue) {
		super(newValue);
		validate();
	}

	public fx_surface_format_hint_range_enum(SchemaString newValue) {
		super(newValue);
		validate();
	}

	public static int getEnumerationCount() {
		return sEnumValues.length;
	}

	public static String getEnumerationValue(int index) {
		return sEnumValues[index];
	}

	public static boolean isValidEnumerationValue(String val) {
		for (int i = 0; i < sEnumValues.length; i++) {
			if (val.equals(sEnumValues[i]))
				return true;
		}
		return false;
	}

	public void validate() {

		if (!isValidEnumerationValue(toString()))
			throw new com.jmex.xml.xml.XmlException("Value of fx_surface_format_hint_range_enum is invalid.");
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?