//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_string.h>
#include <qrect.h>
#include <qglobal.h>
#include <dom/dom_node.h>
#include <dom/dom_doc.h>
#include <dom/dom2_events.h>

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

class NodeJBridge : public DOM::Node
{
public:
	NodeJBridge() : DOM::Node() {};
	NodeJBridge(const DOM::Node& arg1) : DOM::Node(arg1) {};
};

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_addEventListener(JNIEnv* env, jobject obj, jstring type, jobject listener, jboolean useCapture)
{
static DOM::DOMString* _domstring_type = 0;
	((DOM::Node*) QtSupport::getQt(env, obj))->addEventListener((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, type, &_domstring_type), (DOM::EventListener*) QtSupport::getQt(env, listener), (const bool) useCapture);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_applyChanges(JNIEnv* env, jobject obj)
{
	((DOM::Node*) QtSupport::getQt(env, obj))->applyChanges();
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Node_childNodes(JNIEnv* env, jobject obj)
{
	DOM::NodeList  _qlist;
	_qlist = ((DOM::Node*) QtSupport::getQt(env, obj))->childNodes();
	return (jobject) KDESupport::arrayWithNodeList(env, (DOM::NodeList *) &_qlist);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Node_dispatchEvent(JNIEnv* env, jobject obj, jobject evt)
{
	jboolean xret = (jboolean) ((DOM::Node*) QtSupport::getQt(env, obj))->dispatchEvent((const DOM::Event&)*(const DOM::Event*) QtSupport::getQt(env, evt));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_Node_elementId(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::Node*) QtSupport::getQt(env, obj))->elementId();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Node_getRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((DOM::Node*) QtSupport::getQt(env, obj))->getRect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

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

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

JNIEXPORT jlong JNICALL
Java_org_kde_koala_Node_index(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::Node*) QtSupport::getQt(env, obj))->index();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Node_insertBefore(JNIEnv* env, jobject obj, jobject newChild, jobject refChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::Node*) QtSupport::getQt(env, obj))->insertBefore((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, newChild), (const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, refChild))), "org.kde.koala.Node", TRUE);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Node_isSupported(JNIEnv* env, jobject obj, jstring feature, jstring version)
{
static DOM::DOMString* _domstring_feature = 0;
static DOM::DOMString* _domstring_version = 0;
	jboolean xret = (jboolean) ((DOM::Node*) QtSupport::getQt(env, obj))->isSupported((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, feature, &_domstring_feature), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, version, &_domstring_version));
	return xret;
}

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

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

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

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

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

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

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

JNIEXPORT jshort JNICALL
Java_org_kde_koala_Node_nodeType(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((DOM::Node*) QtSupport::getQt(env, obj))->nodeType();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_normalize(JNIEnv* env, jobject obj)
{
	((DOM::Node*) QtSupport::getQt(env, obj))->normalize();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Node_op_1equals(JNIEnv* env, jobject obj, jobject other)
{
	jboolean xret = (jboolean) ((DOM::Node*) QtSupport::getQt(env, obj))->operator ==((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, other));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_Node_op_1not_1equals(JNIEnv* env, jobject obj, jobject other)
{
	jboolean xret = (jboolean) ((DOM::Node*) QtSupport::getQt(env, obj))->operator !=((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, other));
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_removeEventListener(JNIEnv* env, jobject obj, jstring type, jobject listener, jboolean useCapture)
{
static DOM::DOMString* _domstring_type = 0;
	((DOM::Node*) QtSupport::getQt(env, obj))->removeEventListener((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, type, &_domstring_type), (DOM::EventListener*) QtSupport::getQt(env, listener), (bool) useCapture);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Node_replaceChild(JNIEnv* env, jobject obj, jobject newChild, jobject oldChild)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::Node*) QtSupport::getQt(env, obj))->replaceChild((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, newChild), (const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, oldChild))), "org.kde.koala.Node", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_setNodeValue(JNIEnv* env, jobject obj, jstring arg1)
{
static DOM::DOMString* _domstring_arg1 = 0;
	((DOM::Node*) QtSupport::getQt(env, obj))->setNodeValue((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg1, &_domstring_arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_Node_setPrefix(JNIEnv* env, jobject obj, jstring prefix)
{
static DOM::DOMString* _domstring_prefix = 0;
	((DOM::Node*) QtSupport::getQt(env, obj))->setPrefix((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, prefix, &_domstring_prefix));
	return;
}

