📄 polygonstype.java
字号:
/**
* polygonsType.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.SchemaNCName;
public class polygonsType extends com.jmex.xml.xml.Node {
public polygonsType(polygonsType node) {
super(node);
}
public polygonsType(org.w3c.dom.Node node) {
super(node);
}
public polygonsType(org.w3c.dom.Document doc) {
super(doc);
}
public polygonsType(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, "name" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "name", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "count" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "count", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "material" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "material", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "input" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "input", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new InputLocalOffset(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "p" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "p", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ph" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "ph", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new phType(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", "polygons");
}
public static int getnameMinCount() {
return 0;
}
public static int getnameMaxCount() {
return 1;
}
public int getnameCount() {
return getDomChildCount(Attribute, null, "name");
}
public boolean hasname() {
return hasDomChild(Attribute, null, "name");
}
public SchemaNCName newname() {
return new SchemaNCName();
}
public SchemaNCName getnameAt(int index) throws Exception {
return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "name", index)));
}
public org.w3c.dom.Node getStartingnameCursor() throws Exception {
return getDomFirstChild(Attribute, null, "name" );
}
public org.w3c.dom.Node getAdvancednameCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "name", curNode );
}
public SchemaNCName getnameValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaNCName(getDomNodeValue(curNode));
}
public SchemaNCName getname() throws Exception
{
return getnameAt(0);
}
public void removenameAt(int index) {
removeDomChildAt(Attribute, null, "name", index);
}
public void removename() {
removenameAt(0);
}
public org.w3c.dom.Node addname(SchemaNCName value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "name", value.toString());
}
public org.w3c.dom.Node addname(String value) throws Exception {
return addname(new SchemaNCName(value));
}
public void insertnameAt(SchemaNCName value, int index) {
insertDomChildAt(Attribute, null, "name", index, value.toString());
}
public void insertnameAt(String value, int index) throws Exception {
insertnameAt(new SchemaNCName(value), index);
}
public void replacenameAt(SchemaNCName value, int index) {
replaceDomChildAt(Attribute, null, "name", index, value.toString());
}
public void replacenameAt(String value, int index) throws Exception {
replacenameAt(new SchemaNCName(value), index);
}
public static int getcountMinCount() {
return 1;
}
public static int getcountMaxCount() {
return 1;
}
public int getcountCount() {
return getDomChildCount(Attribute, null, "count");
}
public boolean hascount() {
return hasDomChild(Attribute, null, "count");
}
public uint newcount() {
return new uint();
}
public uint getcountAt(int index) throws Exception {
return new uint(getDomNodeValue(getDomChildAt(Attribute, null, "count", index)));
}
public org.w3c.dom.Node getStartingcountCursor() throws Exception {
return getDomFirstChild(Attribute, null, "count" );
}
public org.w3c.dom.Node getAdvancedcountCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "count", curNode );
}
public uint getcountValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new uint(getDomNodeValue(curNode));
}
public uint getcount() throws Exception
{
return getcountAt(0);
}
public void removecountAt(int index) {
removeDomChildAt(Attribute, null, "count", index);
}
public void removecount() {
removecountAt(0);
}
public org.w3c.dom.Node addcount(uint value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "count", value.toString());
}
public org.w3c.dom.Node addcount(String value) throws Exception {
return addcount(new uint(value));
}
public void insertcountAt(uint value, int index) {
insertDomChildAt(Attribute, null, "count", index, value.toString());
}
public void insertcountAt(String value, int index) throws Exception {
insertcountAt(new uint(value), index);
}
public void replacecountAt(uint value, int index) {
replaceDomChildAt(Attribute, null, "count", index, value.toString());
}
public void replacecountAt(String value, int index) throws Exception {
replacecountAt(new uint(value), index);
}
public static int getmaterialMinCount() {
return 0;
}
public static int getmaterialMaxCount() {
return 1;
}
public int getmaterialCount() {
return getDomChildCount(Attribute, null, "material");
}
public boolean hasmaterial() {
return hasDomChild(Attribute, null, "material");
}
public SchemaNCName newmaterial() {
return new SchemaNCName();
}
public SchemaNCName getmaterialAt(int index) throws Exception {
return new SchemaNCName(getDomNodeValue(getDomChildAt(Attribute, null, "material", index)));
}
public org.w3c.dom.Node getStartingmaterialCursor() throws Exception {
return getDomFirstChild(Attribute, null, "material" );
}
public org.w3c.dom.Node getAdvancedmaterialCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "material", curNode );
}
public SchemaNCName getmaterialValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaNCName(getDomNodeValue(curNode));
}
public SchemaNCName getmaterial() throws Exception
{
return getmaterialAt(0);
}
public void removematerialAt(int index) {
removeDomChildAt(Attribute, null, "material", index);
}
public void removematerial() {
removematerialAt(0);
}
public org.w3c.dom.Node addmaterial(SchemaNCName value) {
if( value.isNull() )
return null;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -