⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 meshtype.java

📁 java 3d game jme 工程开发源代码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/**
 * meshType.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 meshType extends com.jmex.xml.xml.Node {

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

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

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

	public meshType(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", "source" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "source", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new sourceType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "vertices" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "vertices", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new verticesType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "lines" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "lines", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new linesType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "linestrips" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "linestrips", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new linestripsType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "polygons" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "polygons", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new polygonsType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "polylist" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "polylist", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new polylistType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "triangles" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "triangles", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new trianglesType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "trifans" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "trifans", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new trifansType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "tristrips" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "tristrips", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new tristripsType(tmpNode).adjustPrefix();
		}
		for (	org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
				tmpNode != null;
				tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", tmpNode )
			) {
			internalAdjustPrefix(tmpNode, true);
			new extraType(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", "mesh");
	}

	public static int getsourceMinCount() {
		return 1;
	}

	public static int getsourceMaxCount() {
		return Integer.MAX_VALUE;
	}

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

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

	public sourceType newsource() {
		return new sourceType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "source"));
	}

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

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

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

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

	public sourceType getsource() throws Exception 
 {
		return getsourceAt(0);
	}

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

	public void removesource() {
		while (hassource())
			removesourceAt(0);
	}

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

	public void insertsourceAt(sourceType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);
	}

	public void replacesourceAt(sourceType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "source", index, value);
	}

	public static int getverticesMinCount() {
		return 1;
	}

	public static int getverticesMaxCount() {
		return 1;
	}

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

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

	public verticesType newvertices() {
		return new verticesType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "vertices"));
	}

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

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

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

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

	public verticesType getvertices() throws Exception 
 {
		return getverticesAt(0);
	}

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

	public void removevertices() {
		removeverticesAt(0);
	}

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

	public void insertverticesAt(verticesType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "vertices", index, value);
	}

	public void replaceverticesAt(verticesType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "vertices", index, value);
	}

	public static int getlinesMinCount() {
		return 1;
	}

	public static int getlinesMaxCount() {
		return 1;
	}

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

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

	public linesType newlines() {
		return new linesType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "lines"));
	}

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

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

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

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

	public linesType getlines() throws Exception 
 {
		return getlinesAt(0);
	}

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

	public void removelines() {
		removelinesAt(0);
	}

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

	public void insertlinesAt(linesType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "lines", index, value);
	}

	public void replacelinesAt(linesType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "lines", index, value);
	}

	public static int getlinestripsMinCount() {
		return 1;
	}

	public static int getlinestripsMaxCount() {
		return 1;
	}

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

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

	public linestripsType newlinestrips() {
		return new linestripsType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "linestrips"));
	}

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

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

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

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

	public linestripsType getlinestrips() throws Exception 
 {
		return getlinestripsAt(0);
	}

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

	public void removelinestrips() {
		removelinestripsAt(0);
	}

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

	public void insertlinestripsAt(linestripsType value, int index) {
		insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "linestrips", index, value);
	}

	public void replacelinestripsAt(linestripsType value, int index) {
		replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "linestrips", index, value);
	}

	public static int getpolygonsMinCount() {
		return 1;
	}

	public static int getpolygonsMaxCount() {
		return 1;
	}

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

⌨️ 快捷键说明

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