📄 shadertype.java
字号:
/**
* shaderType.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 shaderType extends com.jmex.xml.xml.Node {
public shaderType(shaderType node) {
super(node);
}
public shaderType(org.w3c.dom.Node node) {
super(node);
}
public shaderType(org.w3c.dom.Document doc) {
super(doc);
}
public shaderType(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( Attribute, null, "stage" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "stage", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new fx_annotate_common(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_target" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_target", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new compiler_targetType(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_options" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_options", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "name" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "name", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new nameType3(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bind" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "bind", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new bindType2(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", "shader");
}
public static int getstageMinCount() {
return 0;
}
public static int getstageMaxCount() {
return 1;
}
public int getstageCount() {
return getDomChildCount(Attribute, null, "stage");
}
public boolean hasstage() {
return hasDomChild(Attribute, null, "stage");
}
public cg_pipeline_stage newstage() {
return new cg_pipeline_stage();
}
public cg_pipeline_stage getstageAt(int index) throws Exception {
return new cg_pipeline_stage(getDomNodeValue(getDomChildAt(Attribute, null, "stage", index)));
}
public org.w3c.dom.Node getStartingstageCursor() throws Exception {
return getDomFirstChild(Attribute, null, "stage" );
}
public org.w3c.dom.Node getAdvancedstageCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "stage", curNode );
}
public cg_pipeline_stage getstageValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new cg_pipeline_stage(getDomNodeValue(curNode));
}
public cg_pipeline_stage getstage() throws Exception
{
return getstageAt(0);
}
public void removestageAt(int index) {
removeDomChildAt(Attribute, null, "stage", index);
}
public void removestage() {
removestageAt(0);
}
public org.w3c.dom.Node addstage(cg_pipeline_stage value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "stage", value.toString());
}
public org.w3c.dom.Node addstage(String value) throws Exception {
return addstage(new cg_pipeline_stage(value));
}
public void insertstageAt(cg_pipeline_stage value, int index) {
insertDomChildAt(Attribute, null, "stage", index, value.toString());
}
public void insertstageAt(String value, int index) throws Exception {
insertstageAt(new cg_pipeline_stage(value), index);
}
public void replacestageAt(cg_pipeline_stage value, int index) {
replaceDomChildAt(Attribute, null, "stage", index, value.toString());
}
public void replacestageAt(String value, int index) throws Exception {
replacestageAt(new cg_pipeline_stage(value), index);
}
public static int getannotateMinCount() {
return 0;
}
public static int getannotateMaxCount() {
return Integer.MAX_VALUE;
}
public int getannotateCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate");
}
public boolean hasannotate() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate");
}
public fx_annotate_common newannotate() {
return new fx_annotate_common(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "annotate"));
}
public fx_annotate_common getannotateAt(int index) throws Exception {
return new fx_annotate_common(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate", index));
}
public org.w3c.dom.Node getStartingannotateCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate" );
}
public org.w3c.dom.Node getAdvancedannotateCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate", curNode );
}
public fx_annotate_common getannotateValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new fx_annotate_common(curNode);
}
public fx_annotate_common getannotate() throws Exception
{
return getannotateAt(0);
}
public void removeannotateAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "annotate", index);
}
public void removeannotate() {
while (hasannotate())
removeannotateAt(0);
}
public org.w3c.dom.Node addannotate(fx_annotate_common value) {
return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "annotate", value);
}
public void insertannotateAt(fx_annotate_common value, int index) {
insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "annotate", index, value);
}
public void replaceannotateAt(fx_annotate_common value, int index) {
replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "annotate", index, value);
}
public static int getcompiler_targetMinCount() {
return 1;
}
public static int getcompiler_targetMaxCount() {
return 1;
}
public int getcompiler_targetCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_target");
}
public boolean hascompiler_target() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_target");
}
public compiler_targetType newcompiler_target() {
return new compiler_targetType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "compiler_target"));
}
public compiler_targetType getcompiler_targetAt(int index) throws Exception {
return new compiler_targetType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "compiler_target", index));
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -