|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.DOMImplementation
public class DOMImplementation
The 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.
Constructor Summary | |
---|---|
|
DOMImplementation()
|
protected |
DOMImplementation(java.lang.Class dummy)
|
|
DOMImplementation(DOMImplementation other)
|
Method Summary | |
---|---|
CSSStyleSheet |
createCSSStyleSheet(java.lang.String title,
java.lang.String media)
Introduced in DOM Level 2 This method is from the DOMImplementationCSS interface Creates a new CSSStyleSheet. |
Document |
createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
DocumentType doctype)
Introduced in DOM Level 2 Creates an XML Document object of the specified type with its document element. |
DocumentType |
createDocumentType(java.lang.String qualifiedName,
java.lang.String publicId,
java.lang.String systemId)
Introduced in DOM Level 2 Creates an empty DocumentType node. |
HTMLDocument |
createHTMLDocument(java.lang.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(java.lang.String feature)
Introduced in DOM Level 3 This method makes available a DOMImplementation's specialized interface. |
boolean |
hasFeature(java.lang.String feature,
java.lang.String version)
Test if the DOM implementation implements a specific feature. |
boolean |
isNull()
not part of the DOM |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DOMImplementation(java.lang.Class dummy)
public DOMImplementation()
public DOMImplementation(DOMImplementation other)
Method Detail |
---|
public boolean hasFeature(java.lang.String feature, java.lang.String version)
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
.
true
if the feature is implemented in
the specified version, false
otherwise.public DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
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.
public Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype)
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.
public DOMImplementation getInterface(java.lang.String feature)
feature
- The name of the feature requested (case-insensitive)
public CSSStyleSheet createCSSStyleSheet(java.lang.String title, java.lang.String media)
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.
public HTMLDocument createHTMLDocument(java.lang.String title)
title
- The title of the document to be set as the content
of the TITLE element, through a child Text node.
public boolean isNull()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |