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

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

class NamedNodeMapJBridge : public DOM::NamedNodeMap
{
public:
	NamedNodeMapJBridge() : DOM::NamedNodeMap() {};
	NamedNodeMapJBridge(const DOM::NamedNodeMap& arg1) : DOM::NamedNodeMap(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_getNamedItemNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->getNamedItemNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_getNamedItem(JNIEnv* env, jobject obj, jstring name)
{
static DOM::DOMString* _domstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->getNamedItem((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_item(JNIEnv* env, jobject obj, jlong index)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->item((unsigned long) index)), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_length(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->length();
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_removeNamedItemNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->removeNamedItemNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_removeNamedItem(JNIEnv* env, jobject obj, jstring name)
{
static DOM::DOMString* _domstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->removeNamedItem((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_setNamedItemNS(JNIEnv* env, jobject obj, jobject arg)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->setNamedItemNS((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, arg))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_NamedNodeMap_setNamedItem(JNIEnv* env, jobject obj, jobject arg)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::NamedNodeMap*) QtSupport::getQt(env, obj))->setNamedItem((const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, arg))), "org.trinitydesktop.koala.Node", true);
	return xret;
}

