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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CharacterData_appendData(JNIEnv* env, jobject obj, jstring arg)
{
static DOM::DOMString* _domstring_arg = 0;
	((DOM::CharacterData*) QtSupport::getQt(env, obj))->appendData((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg, &_domstring_arg));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CharacterData_deleteData(JNIEnv* env, jobject obj, jlong offset, jlong count)
{
	((DOM::CharacterData*) QtSupport::getQt(env, obj))->deleteData((const unsigned long) offset, (const unsigned long) count);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CharacterData_insertData(JNIEnv* env, jobject obj, jlong offset, jstring arg)
{
static DOM::DOMString* _domstring_arg = 0;
	((DOM::CharacterData*) QtSupport::getQt(env, obj))->insertData((const unsigned long) offset, (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg, &_domstring_arg));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_CharacterData_newCharacterData__Lorg_trinitydesktop_koala_Node_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new CharacterDataJBridge((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_CharacterData_replaceData(JNIEnv* env, jobject obj, jlong offset, jlong count, jstring arg)
{
static DOM::DOMString* _domstring_arg = 0;
	((DOM::CharacterData*) QtSupport::getQt(env, obj))->replaceData((const unsigned long) offset, (const unsigned long) count, (DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, arg, &_domstring_arg));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_CharacterData_substringData(JNIEnv* env, jobject obj, jlong offset, jlong count)
{
	DOM::DOMString  _qstring;
	_qstring = ((DOM::CharacterData*) QtSupport::getQt(env, obj))->substringData((const unsigned long) offset, (const unsigned long) count);
	return KDESupport::fromDOMString(env, &_qstring);
}

