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

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

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

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

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

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

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

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

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

