//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_node.h>
#include <dom/dom2_traversal.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/TreeWalker.h>

class TreeWalkerJBridge : public DOM::TreeWalker
{
public:
	TreeWalkerJBridge() : DOM::TreeWalker() {};
	TreeWalkerJBridge(const DOM::TreeWalker& arg1) : DOM::TreeWalker(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_currentNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->currentNode()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TreeWalker_expandEntityReferences(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::TreeWalker*) QtSupport::getQt(env, obj))->expandEntityReferences();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_filter(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::NodeFilter(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->filter()), "org.trinitydesktop.koala.NodeFilter", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_firstChild(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->firstChild()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_lastChild(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->lastChild()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TreeWalker_newTreeWalker__Lorg_trinitydesktop_koala_TreeWalker_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TreeWalkerJBridge((const DOM::TreeWalker&)*(const DOM::TreeWalker*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_nextNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->nextNode()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_nextSibling(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->nextSibling()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_parentNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->parentNode()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_previousNode(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->previousNode()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_previousSibling(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->previousSibling()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TreeWalker_root(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::TreeWalker*) QtSupport::getQt(env, obj))->root()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TreeWalker_setCurrentNode(JNIEnv* env, jobject obj, jobject _currentNode)
{
	((DOM::TreeWalker*) QtSupport::getQt(env, obj))->setCurrentNode((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, _currentNode));
	return;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_TreeWalker_whatToShow(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::TreeWalker*) QtSupport::getQt(env, obj))->whatToShow();
	return xret;
}

