/***************************************************************************
                            QDomNode.cpp -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qdom.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QDomNode.h>

class QDomNodeJBridge : public QDomNode
{
public:
	QDomNodeJBridge() : QDomNode() {}
	QDomNodeJBridge(const QDomNode& arg1) : QDomNode(arg1) {}
	~QDomNodeJBridge() {QtSupport::qtKeyDeleted(this);}
	QDomNodeJBridge(QDomNodePrivate* arg1) : QDomNode(arg1) {}
};


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

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_newQDomNode__Lorg_kde_qt_QDomNode_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QDomNodeJBridge((QDomNode&) *(QDomNode *) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QDomNode*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_insertBefore(JNIEnv *env, jobject obj, jobject newChild, jobject refChild)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->insertBefore((QDomNode&) *(QDomNode *) QtSupport::getQt(env, newChild), (QDomNode&) *(QDomNode *) QtSupport::getQt(env, refChild))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_insertAfter(JNIEnv *env, jobject obj, jobject newChild, jobject refChild)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->insertAfter((QDomNode&) *(QDomNode *) QtSupport::getQt(env, newChild), (QDomNode&) *(QDomNode *) QtSupport::getQt(env, refChild))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_replaceChild(JNIEnv *env, jobject obj, jobject newChild, jobject oldChild)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->replaceChild((QDomNode&) *(QDomNode *) QtSupport::getQt(env, newChild), (QDomNode&) *(QDomNode *) QtSupport::getQt(env, oldChild))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_removeChild(JNIEnv *env, jobject obj, jobject oldChild)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->removeChild((QDomNode&) *(QDomNode *) QtSupport::getQt(env, oldChild))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_appendChild(JNIEnv *env, jobject obj, jobject newChild)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->appendChild((QDomNode&) *(QDomNode *) QtSupport::getQt(env, newChild))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_hasChildNodes(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->hasChildNodes();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_cloneNode__Z(JNIEnv *env, jobject obj, jboolean deep)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->cloneNode((bool) deep)), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_cloneNode__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomNode(((QDomNodeJBridge*) QtSupport::getQt(env, obj))->cloneNode(TRUE)), "org.kde.qt.QDomNode", TRUE);
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isSupported(JNIEnv *env, jobject obj, jstring feature, jstring version)
{
static QString * _qstring_version = 0;
static QString * _qstring_feature = 0;
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isSupported((QString&) * (QString *) QtSupport::toQString(env, feature, &_qstring_feature), (QString&) * (QString *) QtSupport::toQString(env, version, &_qstring_version));
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDomNode_nodeName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->nodeName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QDomNode_nodeType(JNIEnv *env, jobject obj)
{
	return (jint) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->nodeType();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_parentNode(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->parentNode()), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_childNodes(JNIEnv *env, jobject obj)
{
	QDomNodeList  _qlist;
	_qlist = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->childNodes();
	return (jobject) QtSupport::arrayWithQDomNodeList(env, (QDomNodeList *) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_firstChild(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->firstChild()), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_lastChild(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->lastChild()), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_previousSibling(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->previousSibling()), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_nextSibling(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->nextSibling()), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_attributes(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomNamedNodeMap (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->attributes()), "org.kde.qt.QDomNamedNodeMap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_ownerDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QDomDocument (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->ownerDocument()), "org.kde.qt.QDomDocument", TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDomNode_namespaceURI(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->namespaceURI();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDomNode_localName(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->localName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_hasAttributes(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->hasAttributes();
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDomNode_nodeValue(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->nodeValue();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_setNodeValue(JNIEnv *env, jobject obj, jstring arg1)
{
static QString * _qstring_arg1 = 0;
	((QDomNodeJBridge*) QtSupport::getQt(env, obj))->setNodeValue((QString&) * (QString *) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QDomNode_prefix(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->prefix();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_setPrefix(JNIEnv *env, jobject obj, jstring pre)
{
static QString * _qstring_pre = 0;
	((QDomNodeJBridge*) QtSupport::getQt(env, obj))->setPrefix((QString&) * (QString *) QtSupport::toQString(env, pre, &_qstring_pre));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isAttr(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isAttr();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isCDATASection(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isCDATASection();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isDocumentFragment(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isDocumentFragment();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isDocument(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isDocument();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isDocumentType(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isDocumentType();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isElement(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isElement();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isEntityReference(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isEntityReference();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isText(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isText();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isEntity(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isEntity();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isNotation(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isNotation();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isProcessingInstruction(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isProcessingInstruction();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isCharacterData(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isCharacterData();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isComment(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isComment();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_namedItem(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomNode (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->namedItem((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.QDomNode", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QDomNode_isNull(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QDomNodeJBridge*) QtSupport::getQt(env, obj))->isNull();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_clear(JNIEnv *env, jobject obj)
{
	((QDomNodeJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toAttr(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomAttr (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toAttr()), "org.kde.qt.QDomAttr", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toCDATASection(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomCDATASection (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toCDATASection()), "org.kde.qt.QDomCDATASection", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toDocumentFragment(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomDocumentFragment (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toDocumentFragment()), "org.kde.qt.QDomDocumentFragment", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toDocument(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomDocument (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toDocument()), "org.kde.qt.QDomDocument", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toDocumentType(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomDocumentType (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toDocumentType()), "org.kde.qt.QDomDocumentType", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toElement(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomElement (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toElement()), "org.kde.qt.QDomElement", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toEntityReference(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomEntityReference (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toEntityReference()), "org.kde.qt.QDomEntityReference", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toText(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomText (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toText()), "org.kde.qt.QDomText", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toEntity(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomEntity (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toEntity()), "org.kde.qt.QDomEntity", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toNotation(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomNotation (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toNotation()), "org.kde.qt.QDomNotation", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toProcessingInstruction(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomProcessingInstruction (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toProcessingInstruction()), "org.kde.qt.QDomProcessingInstruction", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toCharacterData(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomCharacterData (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toCharacterData()), "org.kde.qt.QDomCharacterData", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QDomNode_toComment(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QDomComment (((QDomNodeJBridge*) QtSupport::getQt(env, obj))->toComment()), "org.kde.qt.QDomComment", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QDomNode_save(JNIEnv *env, jobject obj, jobject arg1, jint arg2)
{
	((QDomNodeJBridge*) QtSupport::getQt(env, obj))->save((QTextStream&) *(QTextStream *) QtSupport::getQt(env, arg1), (int) arg2);
	return;
}

//JNIEXPORT void JNICALL
//Java_org_kde_qt_QDomNode_newQDomNode__Lorg_kde_qt_QDomNodePrivate_2(JNIEnv *env, jobject obj, jobject arg1)
//{
//	if (QtSupport::getQt(env, obj) == 0) {
//		QtSupport::setQt(env, obj, new QDomNodeJBridge((QDomNodePrivate*) QtSupport::getQt(env, arg1)));
//		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
//	}
//	return;
//}

