fx_surface_init_cube_common.java

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

JAVA
257
字号
/**
 * fx_surface_init_cube_common.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;


public class fx_surface_init_cube_common extends com.jmex.xml.xml.Node {

	public fx_surface_init_cube_common(fx_surface_init_cube_common node) {
		super(node);
	}

	public fx_surface_init_cube_common(org.w3c.dom.Node node) {
		super(node);
	}

	public fx_surface_init_cube_common(org.w3c.dom.Document doc) {
		super(doc);
	}

	public fx_surface_init_cube_common(com.jmex.xml.xml.Document doc, String namespaceURI, String prefix, String name) {
		super(doc, namespaceURI, prefix, name);
	}
	
	public void adjustPrefix() {
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "all" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "all", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new allType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new primaryType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new faceType(tmpNode).adjustPrefix();
		}
	}
	public void setXsiType() {
 		org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
		el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "fx_surface_init_cube_common");
	}

	public static int getallMinCount() {
		return 1;
	}

	public static int getallMaxCount() {
		return 1;
	}

	public int getallCount() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "all");
	}

	public boolean hasall() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "all");
	}

	public allType newall() {
		return new allType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "all"));
	}

	public allType getallAt(int index) throws Exception {
		return new allType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "all", index));
	}

	public org.w3c.dom.Node getStartingallCursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "all" );
	}

	public org.w3c.dom.Node getAdvancedallCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "all", curNode );
	}

	public allType getallValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new allType(curNode);
	}

	public allType getall() throws Exception 
 {
		return getallAt(0);
	}

	public void removeallAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "all", index);
	}

	public void removeall() {
		removeallAt(0);
	}

	public org.w3c.dom.Node addall(allType value) {
		return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "all", value);
	}

	public void insertallAt(allType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "all", index, value);
	}

	public void replaceallAt(allType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "all", index, value);
	}

	public static int getprimaryMinCount() {
		return 1;
	}

	public static int getprimaryMaxCount() {
		return 1;
	}

	public int getprimaryCount() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary");
	}

	public boolean hasprimary() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary");
	}

	public primaryType newprimary() {
		return new primaryType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "primary"));
	}

	public primaryType getprimaryAt(int index) throws Exception {
		return new primaryType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", index));
	}

	public org.w3c.dom.Node getStartingprimaryCursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary" );
	}

	public org.w3c.dom.Node getAdvancedprimaryCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", curNode );
	}

	public primaryType getprimaryValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new primaryType(curNode);
	}

	public primaryType getprimary() throws Exception 
 {
		return getprimaryAt(0);
	}

	public void removeprimaryAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "primary", index);
	}

	public void removeprimary() {
		removeprimaryAt(0);
	}

	public org.w3c.dom.Node addprimary(primaryType value) {
		return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "primary", value);
	}

	public void insertprimaryAt(primaryType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "primary", index, value);
	}

	public void replaceprimaryAt(primaryType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "primary", index, value);
	}

	public static int getfaceMinCount() {
		return 6;
	}

	public static int getfaceMaxCount() {
		return 6;
	}

	public int getfaceCount() {
		return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "face");
	}

	public boolean hasface() {
		return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "face");
	}

	public faceType newface() {
		return new faceType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "face"));
	}

	public faceType getfaceAt(int index) throws Exception {
		return new faceType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "face", index));
	}

	public org.w3c.dom.Node getStartingfaceCursor() throws Exception {
		return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "face" );
	}

	public org.w3c.dom.Node getAdvancedfaceCursor( org.w3c.dom.Node curNode ) throws Exception {
		return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "face", curNode );
	}

	public faceType getfaceValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
		if( curNode == null )
			throw new com.jmex.xml.xml.XmlException("Out of range");
		else
			return new faceType(curNode);
	}

	public faceType getface() throws Exception 
 {
		return getfaceAt(0);
	}

	public void removefaceAt(int index) {
		removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "face", index);
	}

	public void removeface() {
		while (hasface())
			removefaceAt(0);
	}

	public org.w3c.dom.Node addface(faceType value) {
		return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "face", value);
	}

	public void insertfaceAt(faceType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "face", index, value);
	}

	public void replacefaceAt(faceType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "face", index, value);
	}

}

⌨️ 快捷键说明

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