org.kde.koala
public class DOMImplementation extends Object implements QtSupport
DOMImplementation
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.UNKNOWN: The DOMImplementation
interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
Constructor Summary | |
---|---|
protected | DOMImplementation(Class dummy) |
DOMImplementation() | |
DOMImplementation(DOMImplementation other) |
Method Summary | |
---|---|
CSSStyleSheet | createCSSStyleSheet(String title, String media)
Introduced in DOM Level 2
This method is from the DOMImplementationCSS interface
Creates a new CSSStyleSheet. |
Document | createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
Introduced in DOM Level 2
Creates an XML Document object of the specified type with its document
element. |
DocumentType | createDocumentType(String qualifiedName, String publicId, String systemId)
Introduced in DOM Level 2
Creates an empty DocumentType node. |
HTMLDocument | createHTMLDocument(String title)
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.
|
DOMImplementation | getInterface(String feature)
Introduced in DOM Level 3
This method makes available a DOMImplementation's specialized
interface. |
boolean | hasFeature(String feature, String version)
Test if the DOM implementation implements a specific feature. |
boolean | isNull()
not part of the DOM |
Parameters: title The advisory title. See also the Style Sheet Interfaces section. media The comma-separated list of media associated with the new style sheet. See also the Style Sheet Interfaces section.
Returns: A new CSS style sheet.
UNKNOWN: Introduced in DOM Level 2 This method is from the DOMImplementationCSS interface
Parameters: namespaceURI The namespace URI of the document element to create. qualifiedName The qualified name of the document element to be created. 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.
Returns: A new Document object.
UNKNOWN: Introduced in DOM Level 2
Parameters: qualifiedName The qualified name of the document type to be created. publicId The external subset public identifier. systemId The external subset system identifier. NAMESPACE_ERR: Raised if the qualifiedName is malformed.
Returns: A new DocumentType node with Node.ownerDocument set to null.
UNKNOWN: Introduced in DOM Level 2
Parameters: title The title of the document to be set as the content of the TITLE element, through a child Text node.
Returns: the HTMLdocument
UNKNOWN: Introduced in DOM Level 2 This method is from the HTMLDOMImplementation interface
Parameters: feature The name of the feature requested (case-insensitive)
Returns: 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.
UNKNOWN: Introduced in DOM Level 3 This method makes available a DOMImplementation's specialized interface.
Parameters: feature The package name of the feature to test. In
Level 1, the legal values are "HTML" and "XML"
(case-insensitive). 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 true
.
Returns: true
if the feature is implemented in
the specified version, false
otherwise.
UNKNOWN: Test if the DOM implementation implements a specific feature.
UNKNOWN: