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

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_contentEditable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::Element*) QtSupport::getQt(env, obj))->contentEditable();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_form(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Element(((DOM::Element*) QtSupport::getQt(env, obj))->form()), "org.trinitydesktop.koala.Element", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Element_getAttributeNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
	DOM::DOMString  _qstring;
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	_qstring = ((DOM::Element*) QtSupport::getQt(env, obj))->getAttributeNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName));
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_getAttributeNodeNS(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::Attr(((DOM::Element*) QtSupport::getQt(env, obj))->getAttributeNodeNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName))), "org.trinitydesktop.koala.Attr", true);
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Element_getAttribute(JNIEnv* env, jobject obj, jstring name)
{
	DOM::DOMString  _qstring;
static DOM::DOMString* _domstring_name = 0;
	_qstring = ((DOM::Element*) QtSupport::getQt(env, obj))->getAttribute((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return KDESupport::fromDOMString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_getElementsByTagNameNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
	DOM::NodeList  _qlist;
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	_qlist = ((DOM::Element*) QtSupport::getQt(env, obj))->getElementsByTagNameNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName));
	return (jobject) KDESupport::arrayWithNodeList(env, (DOM::NodeList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_getElementsByTagName(JNIEnv* env, jobject obj, jstring name)
{
	DOM::NodeList  _qlist;
static DOM::DOMString* _domstring_name = 0;
	_qlist = ((DOM::Element*) QtSupport::getQt(env, obj))->getElementsByTagName((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return (jobject) KDESupport::arrayWithNodeList(env, (DOM::NodeList *) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_hasAttributeNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	jboolean xret = (jboolean) ((DOM::Element*) QtSupport::getQt(env, obj))->hasAttributeNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_hasAttribute(JNIEnv* env, jobject obj, jstring name)
{
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ((DOM::Element*) QtSupport::getQt(env, obj))->hasAttribute((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_isHTMLElement(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::Element*) QtSupport::getQt(env, obj))->isHTMLElement();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_tdehtmlMalformedPrefix(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ElementJBridge::tdehtmlMalformedPrefix((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_tdehtmlMalformedQualifiedName(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ElementJBridge::tdehtmlMalformedQualifiedName((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_tdehtmlValidAttrName(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ElementJBridge::tdehtmlValidAttrName((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_tdehtmlValidPrefix(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ElementJBridge::tdehtmlValidPrefix((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Element_tdehtmlValidQualifiedName(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static DOM::DOMString* _domstring_name = 0;
	jboolean xret = (jboolean) ElementJBridge::tdehtmlValidQualifiedName((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Element_removeAttributeNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring localName)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_localName = 0;
	((DOM::Element*) QtSupport::getQt(env, obj))->removeAttributeNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, localName, &_domstring_localName));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_removeAttributeNode(JNIEnv* env, jobject obj, jobject oldAttr)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Attr(((DOM::Element*) QtSupport::getQt(env, obj))->removeAttributeNode((const DOM::Attr&)*(const DOM::Attr*) QtSupport::getQt(env, oldAttr))), "org.trinitydesktop.koala.Attr", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Element_removeAttribute(JNIEnv* env, jobject obj, jstring name)
{
static DOM::DOMString* _domstring_name = 0;
	((DOM::Element*) QtSupport::getQt(env, obj))->removeAttribute((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Element_setAttributeNS(JNIEnv* env, jobject obj, jstring namespaceURI, jstring qualifiedName, jstring value)
{
static DOM::DOMString* _domstring_namespaceURI = 0;
static DOM::DOMString* _domstring_qualifiedName = 0;
static DOM::DOMString* _domstring_value = 0;
	((DOM::Element*) QtSupport::getQt(env, obj))->setAttributeNS((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, namespaceURI, &_domstring_namespaceURI), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, qualifiedName, &_domstring_qualifiedName), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, value, &_domstring_value));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_setAttributeNodeNS(JNIEnv* env, jobject obj, jobject newAttr)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Attr(((DOM::Element*) QtSupport::getQt(env, obj))->setAttributeNodeNS((const DOM::Attr&)*(const DOM::Attr*) QtSupport::getQt(env, newAttr))), "org.trinitydesktop.koala.Attr", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_setAttributeNode(JNIEnv* env, jobject obj, jobject newAttr)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Attr(((DOM::Element*) QtSupport::getQt(env, obj))->setAttributeNode((const DOM::Attr&)*(const DOM::Attr*) QtSupport::getQt(env, newAttr))), "org.trinitydesktop.koala.Attr", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Element_setAttribute(JNIEnv* env, jobject obj, jstring name, jstring value)
{
static DOM::DOMString* _domstring_name = 0;
static DOM::DOMString* _domstring_value = 0;
	((DOM::Element*) QtSupport::getQt(env, obj))->setAttribute((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, name, &_domstring_name), (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, value, &_domstring_value));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_Element_setContentEditable(JNIEnv* env, jobject obj, jboolean enabled)
{
	((DOM::Element*) QtSupport::getQt(env, obj))->setContentEditable((bool) enabled);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Element_style(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSStyleDeclaration(((DOM::Element*) QtSupport::getQt(env, obj))->style()), "org.trinitydesktop.koala.CSSStyleDeclaration", true);
	return xret;
}

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

