//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/NodeFilter.h>

class NodeFilterJBridge : public DOM::NodeFilter
{
public:
	NodeFilterJBridge() : DOM::NodeFilter() {};
	NodeFilterJBridge(const DOM::NodeFilter& arg1) : DOM::NodeFilter(arg1) {};
};

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_koala_NodeFilter_acceptNode(JNIEnv* env, jobject obj, jobject n)
{
	jshort xret = (jshort) ((DOM::NodeFilter*) QtSupport::getQt(env, obj))->acceptNode((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, n));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NodeFilter_createCustom(JNIEnv* env, jclass cls, jobject custom)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::NodeFilter(NodeFilterJBridge::createCustom((DOM::CustomNodeFilter*) QtSupport::getQt(env, custom))), "org.trinitydesktop.koala.NodeFilter", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NodeFilter_customNodeFilter(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((DOM::NodeFilter*) QtSupport::getQt(env, obj))->customNodeFilter(), "org.trinitydesktop.koala.CustomNodeFilter");
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_NodeFilter_setCustomNodeFilter(JNIEnv* env, jobject obj, jobject custom)
{
	((DOM::NodeFilter*) QtSupport::getQt(env, obj))->setCustomNodeFilter((DOM::CustomNodeFilter*) QtSupport::getQt(env, custom));
	return;
}

