OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

org.w3c.dom.core
Class DOMImplementation

org.ecmascript.object.Object
   |
   +--org.w3c.dom.core.DOMImplementation

public abstract class DOMImplementation
extends Object
The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.

Note that this object is implemented and supported by the web browser and results of its use may vary.



Field Summary


Fields inherited from org.ecmascript.object.Object

constructor, prototype


Method Summary

public Document
createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)
Creates an XML Document object of the specified type with its document element.
public DocumentType
createDocumentType(String qualifiedName, String publicId, String systemId)
Creates an empty DocumentType node.
public Boolean
hasFeature(String feature, String version)
Creates an empty DocumentType node.


Field Detail


Method Detail


createDocument

public Document createDocument(String namespaceURI,
                               String qualifiedName,
                               DocumentType doctype)

Creates an XML Document object of the specified type with its document element.

Introduced in DOM Level 2.

Parameters:
namespaceURI  -  The namespace URI of the attribute to create.
qualifiedName  -  The qualified name of the attribute to instantiate.
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.)
Return:
Document - A new Document object.
Throws:
DOMException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
DOMException 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].
DOMException WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was created from a different implementation.

createDocumentType

public DocumentType createDocumentType(String qualifiedName,
                                       String publicId,
                                       String systemId)

Creates an empty DocumentType node.

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.
Return:
DocumentType - A new DocumentType node with Node.ownerDocument set to null.
Throws:
DOMException INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.

hasFeature

public Boolean hasFeature(String feature,
                          String version)

Creates an empty DocumentType node.

JavaScript Code Example:
var output = document.implementation.hasFeature('HTML', '1.0');

Parameters:
feature  -  The name of the feature to test (case-insensitive).
version  -  This is the version number of the feature to test. In Level 2, the string can be either "2.0" or "1.0". If the version is null or empty string, supporting any version of the feature causes the method to return true.
Return:
Boolean - true if the feature is implemented in the specified version, false otherwise.

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2013.01.09 16:37 UTC
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.