summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/DOMImplementation.java
blob: 16e80b219cfcacc4c6df7ed6c4e99a33d6d3ecb7 (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;

/**

 The <code>DOMImplementation</code> interface provides a number of
 methods for performing operations that are independent of any
 particular instance of the document object model.
 DOM Level 2 and newer provide means for creating documents directly,
 which was not possible with DOM Level 1.
 		@short    The <code>DOMImplementation</code> interface provides a number of  methods for performing operations that are independent of any  particular instance of the document object model.

*/
public class DOMImplementation implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected DOMImplementation(Class dummy){}

	public DOMImplementation() {
		newDOMImplementation();
	}
	private native void newDOMImplementation();
	public DOMImplementation(DOMImplementation other) {
		newDOMImplementation(other);
	}
	private native void newDOMImplementation(DOMImplementation other);
	/**	
		 Test if the DOM implementation implements a specific feature.
			@param feature The package name of the feature to test. In
		 Level 1, the legal values are "HTML" and "XML"
		 (case-insensitive).
			@param version This is the version number of the package name
		 to test. In Level 1, this is the string "1.0". If the version
		 is not specified, supporting any version of the feature will
		 cause the method to return <code>true</code> .
			     		@return <code>true</code> if the feature is implemented in
 the specified version, <code>false</code> otherwise.

		@short    Test if the DOM implementation implements a specific feature.
	*/
	public native boolean hasFeature(String feature, String version);
	/**	
		 Introduced in DOM Level 2
			 Creates an empty DocumentType node. Entity declarations and notations
		 are not made available. Entity reference expansions and default
		 attribute additions do not occur. It is expected that a future version
		 of the DOM will provide a way for populating a DocumentType.
			 HTML-only DOM implementations do not need to implement this method.
			@param qualifiedName The qualified name of the document type to be
		 created.
			@param publicId The external subset public identifier.
			@param systemId The external subset system identifier.
			 NAMESPACE_ERR: Raised if the qualifiedName is malformed.
		     		@return A new DocumentType node with Node.ownerDocument set to null.

		@short    Introduced in DOM Level 2
	*/
	public native DocumentType createDocumentType(String qualifiedName, String publicId, String systemId);
	/**	
		 Introduced in DOM Level 2
			 Creates an XML Document object of the specified type with its document
		 element. HTML-only DOM implementations do not need to implement this
		 method.
			@param namespaceURI The namespace URI of the document element to create.
			@param qualifiedName The qualified name of the document element to be
		 created.
			@param doctype The type of document to be created or null. When doctype
		 is not null, its Node.ownerDocument attribute is set to the document
		 being created.
			 NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the
		 qualifiedName has a prefix and the namespaceURI is null, or if the
		 qualifiedName has a prefix that is "xml" and the namespaceURI is
		 different from "http://www.w3.org/XML/1998/namespace" [Namespaces].
			 WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a
		 different document or was created from a different implementation.
		     		@return A new Document object.

		@short    Introduced in DOM Level 2
	*/
	public native Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype);
	/**	
		 Introduced in DOM Level 3
		 This method makes available a DOMImplementation's specialized
		 interface.
			@param feature The name of the feature requested (case-insensitive)
				@return Returns an alternate DOMImplementation which implements
 the specialized APIs of the specified feature, if any, or null
 if there is no alternate DOMImplementation object which implements
 interfaces associated with that feature. Any alternate DOMImplementation
 returned by this method must delegate to the primary core DOMImplementation
 and not return results inconsistent with the primary DOMImplementation.
     
		@short    Introduced in DOM Level 3  This method makes available a DOMImplementation's specialized  interface.
	*/
	public native DOMImplementation getInterface(String feature);
	/**	
		 Introduced in DOM Level 2
		 This method is from the DOMImplementationCSS interface
			 Creates a new CSSStyleSheet.
			@param title The advisory title. See also the Style Sheet Interfaces
		 section.
			@param media The comma-separated list of media associated with the
		 new style sheet. See also the Style Sheet Interfaces section.
				@return A new CSS style sheet.

		@short    Introduced in DOM Level 2  This method is from the DOMImplementationCSS interface
	*/
	public native CSSStyleSheet createCSSStyleSheet(String title, String media);
	/**	
		 Introduced in DOM Level 2
		 This method is from the HTMLDOMImplementation interface
			 Creates an HTMLDocument with the minimal tree made of these
		 elements: HTML,HEAD,TITLE and BODY.
		 It extends the core interface which can be used to create an
		 XHTML document by passing the XHTML namespace as the namespace
		 for the root element.
			@param title The title of the document to be set as the content
		 of the TITLE element, through a child Text node.
				@return the HTMLdocument
     
		@short    Introduced in DOM Level 2  This method is from the HTMLDOMImplementation interface
	*/
	public native HTMLDocument createHTMLDocument(String title);
	/**	
			 not part of the DOM
		     		@short
	*/
	// DOM::DOMImplementationImpl* handle(); >>>> NOT CONVERTED
	public native boolean isNull();
	// DOM::DOMImplementation* DOMImplementation(DOM::DOMImplementationImpl* arg1); >>>> NOT CONVERTED
}