boxtype.java
来自「java 3d game jme 工程开发源代码」· Java 代码 · 共 200 行
JAVA
200 行
/**
* boxType.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 boxType extends com.jmex.xml.xml.Node {
public boxType(boxType node) {
super(node);
}
public boxType(org.w3c.dom.Node node) {
super(node);
}
public boxType(org.w3c.dom.Document doc) {
super(doc);
}
public boxType(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", "half_extents" );
tmpNode != null;
tmpNode = getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", 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", "box");
}
public static int gethalf_extentsMinCount() {
return 1;
}
public static int gethalf_extentsMaxCount() {
return 1;
}
public int gethalf_extentsCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
}
public boolean hashalf_extents() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents");
}
public float3 newhalf_extents() {
return new float3();
}
public float3 gethalf_extentsAt(int index) throws Exception {
return new float3(getDomNodeValue(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index)));
}
public org.w3c.dom.Node getStartinghalf_extentsCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents" );
}
public org.w3c.dom.Node getAdvancedhalf_extentsCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", curNode );
}
public float3 gethalf_extentsValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new float3(getDomNodeValue(curNode));
}
public float3 gethalf_extents() throws Exception
{
return gethalf_extentsAt(0);
}
public void removehalf_extentsAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index);
}
public void removehalf_extents() {
removehalf_extentsAt(0);
}
public org.w3c.dom.Node addhalf_extents(float3 value) {
if( value.isNull() )
return null;
return appendDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", value.toString());
}
public org.w3c.dom.Node addhalf_extents(String value) throws Exception {
return addhalf_extents(new float3(value));
}
public void inserthalf_extentsAt(float3 value, int index) {
insertDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
}
public void inserthalf_extentsAt(String value, int index) throws Exception {
inserthalf_extentsAt(new float3(value), index);
}
public void replacehalf_extentsAt(float3 value, int index) {
replaceDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "half_extents", index, value.toString());
}
public void replacehalf_extentsAt(String value, int index) throws Exception {
replacehalf_extentsAt(new float3(value), index);
}
public static int getextraMinCount() {
return 0;
}
public static int getextraMaxCount() {
return Integer.MAX_VALUE;
}
public int getextraCount() {
return getDomChildCount(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
}
public boolean hasextra() {
return hasDomChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra");
}
public extraType newextra() {
return new extraType(domNode.getOwnerDocument().createElementNS("http://www.collada.org/2005/11/COLLADASchema", "extra"));
}
public extraType getextraAt(int index) throws Exception {
return new extraType(getDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index));
}
public org.w3c.dom.Node getStartingextraCursor() throws Exception {
return getDomFirstChild(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra" );
}
public org.w3c.dom.Node getAdvancedextraCursor( org.w3c.dom.Node curNode ) throws Exception {
return getDomNextChild( Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", curNode );
}
public extraType getextraValueAtCursor( org.w3c.dom.Node curNode ) throws Exception {
if( curNode == null )
throw new com.jmex.xml.xml.XmlException("Out of range");
else
return new extraType(curNode);
}
public extraType getextra() throws Exception
{
return getextraAt(0);
}
public void removeextraAt(int index) {
removeDomChildAt(Element, "http://www.collada.org/2005/11/COLLADASchema", "extra", index);
}
public void removeextra() {
while (hasextra())
removeextraAt(0);
}
public org.w3c.dom.Node addextra(extraType value) {
return appendDomElement("http://www.collada.org/2005/11/COLLADASchema", "extra", value);
}
public void insertextraAt(extraType value, int index) {
insertDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
}
public void replaceextraAt(extraType value, int index) {
replaceDomElementAt("http://www.collada.org/2005/11/COLLADASchema", "extra", index, value);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?