summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/DocumentType.cpp
blob: c258534f280e7b6cd5b6e596debd4463b3ac6c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/dom_string.h>
#include <dom/dom_node.h>
#include <dom/dom_doc.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/DocumentType.h>

class DocumentTypeJBridge : public DOM::DocumentType
{
public:
	DocumentTypeJBridge() : DOM::DocumentType() {};
	DocumentTypeJBridge(const DOM::DocumentType& arg1) : DOM::DocumentType(arg1) {};
	DocumentTypeJBridge(const DOM::Node& arg1) : DOM::DocumentType(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DocumentType_entities(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::NamedNodeMap(((DOM::DocumentType*) QtSupport::getQt(env, obj))->entities()), "org.kde.koala.NamedNodeMap", TRUE);
	return xret;
}

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_DocumentType_notations(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::NamedNodeMap(((DOM::DocumentType*) QtSupport::getQt(env, obj))->notations()), "org.kde.koala.NamedNodeMap", TRUE);
	return xret;
}

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

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