gles_sampler_wrap.java

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

JAVA
67
字号
/**
 * gles_sampler_wrap.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.SchemaNMToken;

public class gles_sampler_wrap extends SchemaNMToken {
	public static final int EREPEAT = 0; /* REPEAT */
	public static final int ECLAMP = 1; /* CLAMP */
	public static final int ECLAMP_TO_EDGE = 2; /* CLAMP_TO_EDGE */
	public static final int EMIRRORED_REPEAT = 3; /* MIRRORED_REPEAT */

	public static String[] sEnumValues = {
		"REPEAT",
		"CLAMP",
		"CLAMP_TO_EDGE",
		"MIRRORED_REPEAT",
	};

	public gles_sampler_wrap() {
		super();
	}

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

	public gles_sampler_wrap(SchemaNMToken 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 gles_sampler_wrap is invalid.");
	}
}

⌨️ 快捷键说明

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