//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqtextstream.h>
#include <tqstring.h>
#include <tqdom.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQDomNode.h>

class TQDomNodeJBridge : public TQDomNode
{
public:
	TQDomNodeJBridge() : TQDomNode() {};
	TQDomNodeJBridge(const TQDomNode& arg1) : TQDomNode(arg1) {};
	void public_normalize() {
		TQDomNode::normalize();
		return;
	}
	~TQDomNodeJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_appendChild(JNIEnv* env, jobject obj, jobject newChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->appendChild((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newChild))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_attributes(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNamedNodeMap(((TQDomNode*) QtSupport::getQt(env, obj))->attributes()), "org.trinitydesktop.qt.TQDomNamedNodeMap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_childNodes(JNIEnv* env, jobject obj)
{
	TQDomNodeList  _qlist;
	_qlist = ((TQDomNode*) QtSupport::getQt(env, obj))->childNodes();
	return (jobject) QtSupport::arrayWithTQDomNodeList(env, (TQDomNodeList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_clear(JNIEnv* env, jobject obj)
{
	((TQDomNode*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_cloneNode__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->cloneNode()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_cloneNode__Z(JNIEnv* env, jobject obj, jboolean deep)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->cloneNode((bool) deep)), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QDomNode_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQDomNode*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_firstChild(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->firstChild()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_hasAttributes(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->hasAttributes();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_hasChildNodes(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->hasChildNodes();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_insertAfter(JNIEnv* env, jobject obj, jobject newChild, jobject refChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->insertAfter((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newChild), (const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, refChild))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_insertBefore(JNIEnv* env, jobject obj, jobject newChild, jobject refChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->insertBefore((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newChild), (const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, refChild))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isAttr(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isAttr();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isCDATASection(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isCDATASection();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isCharacterData(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isCharacterData();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isComment(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isComment();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isDocumentFragment(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isDocumentFragment();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isDocumentType(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isDocumentType();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isDocument(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isDocument();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isElement(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isElement();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isEntityReference(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isEntityReference();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isEntity(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isEntity();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isNotation(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isNotation();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isProcessingInstruction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isProcessingInstruction();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isSupported(JNIEnv* env, jobject obj, jstring feature, jstring version)
{
static TQString* _qstring_feature = 0;
static TQString* _qstring_version = 0;
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isSupported((const TQString&)*(TQString*) QtSupport::toTQString(env, feature, &_qstring_feature), (const TQString&)*(TQString*) QtSupport::toTQString(env, version, &_qstring_version));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_isText(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->isText();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_lastChild(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->lastChild()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDomNode_localName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQDomNode*) QtSupport::getQt(env, obj))->localName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_namedItem(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->namedItem((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDomNode_namespaceURI(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQDomNode*) QtSupport::getQt(env, obj))->namespaceURI();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_newTQDomNode__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDomNodeJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_newTQDomNode__Lorg_trinitydesktop_qt_QDomNode_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQDomNodeJBridge((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_nextSibling(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->nextSibling()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDomNode_nodeName(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQDomNode*) QtSupport::getQt(env, obj))->nodeName();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDomNode_nodeType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQDomNode*) QtSupport::getQt(env, obj))->nodeType();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDomNode_nodeValue(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQDomNode*) QtSupport::getQt(env, obj))->nodeValue();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_normalize(JNIEnv* env, jobject obj)
{
	((TQDomNodeJBridge*) QtSupport::getQt(env, obj))->public_normalize();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->operator==((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDomNode_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQDomNode*) QtSupport::getQt(env, obj))->operator!=((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_ownerDocument(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocument(((TQDomNode*) QtSupport::getQt(env, obj))->ownerDocument()), "org.trinitydesktop.qt.TQDomDocument", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_parentNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->parentNode()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDomNode_prefix(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQDomNode*) QtSupport::getQt(env, obj))->prefix();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_previousSibling(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->previousSibling()), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_removeChild(JNIEnv* env, jobject obj, jobject oldChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->removeChild((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, oldChild))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_replaceChild(JNIEnv* env, jobject obj, jobject newChild, jobject oldChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNode(((TQDomNode*) QtSupport::getQt(env, obj))->replaceChild((const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, newChild), (const TQDomNode&)*(const TQDomNode*) QtSupport::getQt(env, oldChild))), "org.trinitydesktop.qt.TQDomNode", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_save(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	((TQDomNode*) QtSupport::getQt(env, obj))->save((TQTextStream&)*(TQTextStream*) QtSupport::getQt(env, arg1), (int) arg2);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_setNodeValue(JNIEnv* env, jobject obj, jstring arg1)
{
static TQString* _qstring_arg1 = 0;
	((TQDomNode*) QtSupport::getQt(env, obj))->setNodeValue((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDomNode_setPrefix(JNIEnv* env, jobject obj, jstring pre)
{
static TQString* _qstring_pre = 0;
	((TQDomNode*) QtSupport::getQt(env, obj))->setPrefix((const TQString&)*(TQString*) QtSupport::toTQString(env, pre, &_qstring_pre));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toAttr(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomAttr(((TQDomNode*) QtSupport::getQt(env, obj))->toAttr()), "org.trinitydesktop.qt.TQDomAttr", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toCDATASection(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomCDATASection(((TQDomNode*) QtSupport::getQt(env, obj))->toCDATASection()), "org.trinitydesktop.qt.TQDomCDATASection", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toCharacterData(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomCharacterData(((TQDomNode*) QtSupport::getQt(env, obj))->toCharacterData()), "org.trinitydesktop.qt.TQDomCharacterData", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toComment(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomComment(((TQDomNode*) QtSupport::getQt(env, obj))->toComment()), "org.trinitydesktop.qt.TQDomComment", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toDocumentFragment(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentFragment(((TQDomNode*) QtSupport::getQt(env, obj))->toDocumentFragment()), "org.trinitydesktop.qt.TQDomDocumentFragment", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toDocumentType(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocumentType(((TQDomNode*) QtSupport::getQt(env, obj))->toDocumentType()), "org.trinitydesktop.qt.TQDomDocumentType", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toDocument(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomDocument(((TQDomNode*) QtSupport::getQt(env, obj))->toDocument()), "org.trinitydesktop.qt.TQDomDocument", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toElement(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomElement(((TQDomNode*) QtSupport::getQt(env, obj))->toElement()), "org.trinitydesktop.qt.TQDomElement", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toEntityReference(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomEntityReference(((TQDomNode*) QtSupport::getQt(env, obj))->toEntityReference()), "org.trinitydesktop.qt.TQDomEntityReference", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toEntity(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomEntity(((TQDomNode*) QtSupport::getQt(env, obj))->toEntity()), "org.trinitydesktop.qt.TQDomEntity", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toNotation(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomNotation(((TQDomNode*) QtSupport::getQt(env, obj))->toNotation()), "org.trinitydesktop.qt.TQDomNotation", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toProcessingInstruction(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomProcessingInstruction(((TQDomNode*) QtSupport::getQt(env, obj))->toProcessingInstruction()), "org.trinitydesktop.qt.TQDomProcessingInstruction", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDomNode_toText(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQDomText(((TQDomNode*) QtSupport::getQt(env, obj))->toText()), "org.trinitydesktop.qt.TQDomText", true);
	return xret;
}

