assettype.java
来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 783 行 · 第 1/2 页
JAVA
783 行
/**
* assetType.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.SchemaDateTime;
import com.jmex.xml.types.SchemaString;
public class assetType extends com.jmex.xml.xml.Node {
public assetType(assetType node) {
super(node);
}
public assetType(org.w3c.dom.Node node) {
super(node);
}
public assetType(org.w3c.dom.Document doc) {
super(doc);
}
public assetType(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", "contributor" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new contributorType(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "created" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "created", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "modified" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "revision" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "revision", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "subject" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "subject", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "title" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "title", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "unit" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "unit", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new unitType(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "up_axis" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "up_axis", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
}
public void setXsiType() {
org.w3c.dom.Element el = (org.w3c.dom.Element) domNode;
el.setAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "xsi:type", "asset");
}
public static int getcontributorMinCount() {
return 0;
}
public static int getcontributorMaxCount() {
return Integer.MAX_VALUE;
}
public int getcontributorCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor");
}
public boolean hascontributor() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor");
}
public contributorType newcontributor() {
return new contributorType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "contributor"));
}
public contributorType getcontributorAt(int index) throws Exception {
return new contributorType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor", index));
}
public org.w3c.dom.Node getStartingcontributorCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor" );
}
public org.w3c.dom.Node getAdvancedcontributorCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor", curNode );
}
public contributorType getcontributorValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new contributorType(curNode);
}
public contributorType getcontributor() throws Exception
{
return getcontributorAt(0);
}
public void removecontributorAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "contributor", index);
}
public void removecontributor() {
while (hascontributor())
removecontributorAt(0);
}
public org.w3c.dom.Node addcontributor(contributorType value) {
return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "contributor", value);
}
public void insertcontributorAt(contributorType value, int index) {
insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "contributor", index, value);
}
public void replacecontributorAt(contributorType value, int index) {
replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "contributor", index, value);
}
public static int getcreatedMinCount() {
return 1;
}
public static int getcreatedMaxCount() {
return 1;
}
public int getcreatedCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "created");
}
public boolean hascreated() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "created");
}
public SchemaDateTime newcreated() {
return new SchemaDateTime();
}
public SchemaDateTime getcreatedAt(int index) throws Exception {
return new SchemaDateTime(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "created", index)));
}
public org.w3c.dom.Node getStartingcreatedCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "created" );
}
public org.w3c.dom.Node getAdvancedcreatedCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "created", curNode );
}
public SchemaDateTime getcreatedValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaDateTime(getDomNodeValue(curNode));
}
public SchemaDateTime getcreated() throws Exception
{
return getcreatedAt(0);
}
public void removecreatedAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "created", index);
}
public void removecreated() {
removecreatedAt(0);
}
public org.w3c.dom.Node addcreated(SchemaDateTime value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "created", value.toString());
}
public org.w3c.dom.Node addcreated(String value) throws Exception {
return addcreated(new SchemaDateTime(value));
}
public void insertcreatedAt(SchemaDateTime value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "created", index, value.toString());
}
public void insertcreatedAt(String value, int index) throws Exception {
insertcreatedAt(new SchemaDateTime(value), index);
}
public void replacecreatedAt(SchemaDateTime value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "created", index, value.toString());
}
public void replacecreatedAt(String value, int index) throws Exception {
replacecreatedAt(new SchemaDateTime(value), index);
}
public static int getkeywordsMinCount() {
return 0;
}
public static int getkeywordsMaxCount() {
return 1;
}
public int getkeywordsCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords");
}
public boolean haskeywords() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords");
}
public SchemaString newkeywords() {
return new SchemaString();
}
public SchemaString getkeywordsAt(int index) throws Exception {
return new SchemaString(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", index)));
}
public org.w3c.dom.Node getStartingkeywordsCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords" );
}
public org.w3c.dom.Node getAdvancedkeywordsCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", curNode );
}
public SchemaString getkeywordsValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaString(getDomNodeValue(curNode));
}
public SchemaString getkeywords() throws Exception
{
return getkeywordsAt(0);
}
public void removekeywordsAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", index);
}
public void removekeywords() {
removekeywordsAt(0);
}
public org.w3c.dom.Node addkeywords(SchemaString value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", value.toString());
}
public org.w3c.dom.Node addkeywords(String value) throws Exception {
return addkeywords(new SchemaString(value));
}
public void insertkeywordsAt(SchemaString value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", index, value.toString());
}
public void insertkeywordsAt(String value, int index) throws Exception {
insertkeywordsAt(new SchemaString(value), index);
}
public void replacekeywordsAt(SchemaString value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "keywords", index, value.toString());
}
public void replacekeywordsAt(String value, int index) throws Exception {
replacekeywordsAt(new SchemaString(value), index);
}
public static int getmodifiedMinCount() {
return 1;
}
public static int getmodifiedMaxCount() {
return 1;
}
public int getmodifiedCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified");
}
public boolean hasmodified() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified");
}
public SchemaDateTime newmodified() {
return new SchemaDateTime();
}
public SchemaDateTime getmodifiedAt(int index) throws Exception {
return new SchemaDateTime(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", index)));
}
public org.w3c.dom.Node getStartingmodifiedCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified" );
}
public org.w3c.dom.Node getAdvancedmodifiedCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", curNode );
}
public SchemaDateTime getmodifiedValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaDateTime(getDomNodeValue(curNode));
}
public SchemaDateTime getmodified() throws Exception
{
return getmodifiedAt(0);
}
public void removemodifiedAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", index);
}
public void removemodified() {
removemodifiedAt(0);
}
public org.w3c.dom.Node addmodified(SchemaDateTime value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", value.toString());
}
public org.w3c.dom.Node addmodified(String value) throws Exception {
return addmodified(new SchemaDateTime(value));
}
public void insertmodifiedAt(SchemaDateTime value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "modified", index, value.toString());
}
public void insertmodifiedAt(String value, int index) throws Exception {
insertmodifiedAt(new SchemaDateTime(value), index);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?