imagetype.java
来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 870 行 · 第 1/2 页
JAVA
870 行
/**
* imageType.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.SchemaID;
import com.jmex.xml.types.SchemaNCName;
import com.jmex.xml.types.SchemaString;
import com.jmex.xml.types.SchemaToken;
public class imageType extends com.jmex.xml.xml.Node {
public imageType(imageType node) {
super(node);
}
public imageType(org.w3c.dom.Node node) {
super(node);
}
public imageType(org.w3c.dom.Document doc) {
super(doc);
}
public imageType(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, "id" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "id", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
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, "format" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "format", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "height" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "height", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "width" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "width", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Attribute, null, "depth" );
tmpNode != null;
tmpNode = getDomNextChild( Attribute, null, "depth", tmpNode )
) {
internalAdjustPrefix(tmpNode, false);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "asset", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
new assetType(tmpNode).adjustPrefix();
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "data" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "data", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
for ( org.w3c.dom.Node tmpNode = getDomFirstChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "init_from" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "init_from", tmpNode )
) {
internalAdjustPrefix(tmpNode, true);
}
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", "image");
}
public static int getidMinCount() {
return 0;
}
public static int getidMaxCount() {
return 1;
}
public int getidCount() {
return getDomChildCount(Attribute, null, "id");
}
public boolean hasid() {
return hasDomChild(Attribute, null, "id");
}
public SchemaID newid() {
return new SchemaID();
}
public SchemaID getidAt(int index) throws Exception {
return new SchemaID(getDomNodeValue(getDomChildAt(Attribute, null, "id", index)));
}
public org.w3c.dom.Node getStartingidCursor() throws Exception {
return getDomFirstChild(Attribute, null, "id" );
}
public org.w3c.dom.Node getAdvancedidCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "id", curNode );
}
public SchemaID getidValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaID(getDomNodeValue(curNode));
}
public SchemaID getid() throws Exception
{
return getidAt(0);
}
public void removeidAt(int index) {
removeDomChildAt(Attribute, null, "id", index);
}
public void removeid() {
removeidAt(0);
}
public org.w3c.dom.Node addid(SchemaID value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "id", value.toString());
}
public org.w3c.dom.Node addid(String value) throws Exception {
return addid(new SchemaID(value));
}
public void insertidAt(SchemaID value, int index) {
insertDomChildAt(Attribute, null, "id", index, value.toString());
}
public void insertidAt(String value, int index) throws Exception {
insertidAt(new SchemaID(value), index);
}
public void replaceidAt(SchemaID value, int index) {
replaceDomChildAt(Attribute, null, "id", index, value.toString());
}
public void replaceidAt(String value, int index) throws Exception {
replaceidAt(new SchemaID(value), index);
}
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 getformatMinCount() {
return 0;
}
public static int getformatMaxCount() {
return 1;
}
public int getformatCount() {
return getDomChildCount(Attribute, null, "format");
}
public boolean hasformat() {
return hasDomChild(Attribute, null, "format");
}
public SchemaToken newformat() {
return new SchemaToken();
}
public SchemaToken getformatAt(int index) throws Exception {
return new SchemaToken(getDomNodeValue(getDomChildAt(Attribute, null, "format", index)));
}
public org.w3c.dom.Node getStartingformatCursor() throws Exception {
return getDomFirstChild(Attribute, null, "format" );
}
public org.w3c.dom.Node getAdvancedformatCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "format", curNode );
}
public SchemaToken getformatValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new SchemaToken(getDomNodeValue(curNode));
}
public SchemaToken getformat() throws Exception
{
return getformatAt(0);
}
public void removeformatAt(int index) {
removeDomChildAt(Attribute, null, "format", index);
}
public void removeformat() {
removeformatAt(0);
}
public org.w3c.dom.Node addformat(SchemaToken value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "format", value.toString());
}
public org.w3c.dom.Node addformat(String value) throws Exception {
return addformat(new SchemaToken(value));
}
public void insertformatAt(SchemaToken value, int index) {
insertDomChildAt(Attribute, null, "format", index, value.toString());
}
public void insertformatAt(String value, int index) throws Exception {
insertformatAt(new SchemaToken(value), index);
}
public void replaceformatAt(SchemaToken value, int index) {
replaceDomChildAt(Attribute, null, "format", index, value.toString());
}
public void replaceformatAt(String value, int index) throws Exception {
replaceformatAt(new SchemaToken(value), index);
}
public static int getheightMinCount() {
return 0;
}
public static int getheightMaxCount() {
return 1;
}
public int getheightCount() {
return getDomChildCount(Attribute, null, "height");
}
public boolean hasheight() {
return hasDomChild(Attribute, null, "height");
}
public uint newheight() {
return new uint();
}
public uint getheightAt(int index) throws Exception {
return new uint(getDomNodeValue(getDomChildAt(Attribute, null, "height", index)));
}
public org.w3c.dom.Node getStartingheightCursor() throws Exception {
return getDomFirstChild(Attribute, null, "height" );
}
public org.w3c.dom.Node getAdvancedheightCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Attribute, null, "height", curNode );
}
public uint getheightValueAtCursor( 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 getheight() throws Exception
{
return getheightAt(0);
}
public void removeheightAt(int index) {
removeDomChildAt(Attribute, null, "height", index);
}
public void removeheight() {
removeheightAt(0);
}
public org.w3c.dom.Node addheight(uint value) {
if( value.isNull() )
return null;
return appendDomChild(Attribute, null, "height", value.toString());
}
public org.w3c.dom.Node addheight(String value) throws Exception {
return addheight(new uint(value));
}
public void insertheightAt(uint value, int index) {
insertDomChildAt(Attribute, null, "height", index, value.toString());
}
public void insertheightAt(String value, int index) throws Exception {
insertheightAt(new uint(value), index);
}
public void replaceheightAt(uint value, int index) {
replaceDomChildAt(Attribute, null, "height", index, value.toString());
}
public void replaceheightAt(String value, int index) throws Exception {
replaceheightAt(new uint(value), index);
}
public static int getwidthMinCount() {
return 0;
}
public static int getwidthMaxCount() {
return 1;
}
public int getwidthCount() {
return getDomChildCount(Attribute, null, "width");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?