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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/NodeIterator.h>

class NodeIteratorJBridge : public DOM::NodeIterator
{
public:
	NodeIteratorJBridge() : DOM::NodeIterator() {};
	NodeIteratorJBridge(const DOM::NodeIterator& arg1) : DOM::NodeIterator(arg1) {};
};

JNIEXPORT void JNICALL
Java_org_kde_koala_NodeIterator_detach(JNIEnv* env, jobject obj)
{
	((DOM::NodeIterator*) QtSupport::getQt(env, obj))->detach();
	return;
}

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

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

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

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

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

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

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

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

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

