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

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

class CustomNodeFilterJBridge : public DOM::CustomNodeFilter
{
public:
	CustomNodeFilterJBridge() : DOM::CustomNodeFilter() {};
};

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CustomNodeFilter_customNodeFilterType(JNIEnv* env, jobject obj)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::CustomNodeFilter*) QtSupport::getQt(env, obj))->customNodeFilterType();
	return KDESupport::fromDOMString(env, &_qstring);
}

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

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

