com.hp.hpl.thermopylae
Class DOMImplementationImpl

java.lang.Object
  |
  +--com.hp.hpl.thermopylae.DOMImplementationImpl
All Implemented Interfaces:
org.w3c.dom.DOMImplementation

public class DOMImplementationImpl
extends java.lang.Object
implements org.w3c.dom.DOMImplementation

Standard wrapper around sparta stuff.

Copyright (C) 2002 Hewlett-Packard Company. This file is part of Sparta, an XML Parser, DOM, and XPath library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Version:
$Date: 2002/08/19 05:04:19 $ $Revision: 1.1.1.1 $
Author:
Eamonn O'Brien-Strain

Constructor Summary
DOMImplementationImpl()
           
 
Method Summary
 org.w3c.dom.Document createDocument(java.lang.String a, java.lang.String b, org.w3c.dom.DocumentType c)
          Creates a DOM Document object of the specified type with its document element.
 org.w3c.dom.DocumentType createDocumentType(java.lang.String a, java.lang.String b, java.lang.String c)
          Creates an empty DocumentType node.
 org.w3c.dom.DOMImplementation getInterface(java.lang.String feature)
          This method makes available a DOMImplementation's specialized interface (see ).
 boolean hasFeature(java.lang.String parm1, java.lang.String parm2)
          Test if the DOM implementation implements a specific feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMImplementationImpl

public DOMImplementationImpl()
Method Detail

createDocument

public org.w3c.dom.Document createDocument(java.lang.String a,
                                           java.lang.String b,
                                           org.w3c.dom.DocumentType c)
                                    throws org.w3c.dom.DOMException
Description copied from interface: org.w3c.dom.DOMImplementation
Creates a DOM Document object of the specified type with its document element.
Specified by:
createDocument in interface org.w3c.dom.DOMImplementation
Following copied from interface: org.w3c.dom.DOMImplementation
Parameters:
namespaceURI - The namespace URI of the document element to create or null.
qualifiedName - The qualified name of the document element to be created or null.
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.
Returns:
A new Document object with its document element. If the NamespaceURI, qualifiedName, and doctype are null, the returned Document is empty with no document element.
Throws:
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, or if the qualifiedName is null and the namespaceURI is different from null, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from " http://www.w3.org/XML/1998/namespace" , or if the DOM implementation does not support the "XML" feature but a non-null namespace URI was provided, since namespaces were defined by XML.
WRONG_DOCUMENT_ERR: Raised if doctype has already been used with a different document or was created from a different implementation.
NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the "XML" feature, if they choose not to support this method. Other features introduced in the future, by the DOM WG or in extensions defined by other groups, may also demand support for this method; please consult the definition of the feature to see if it requires this method.

createDocumentType

public org.w3c.dom.DocumentType createDocumentType(java.lang.String a,
                                                   java.lang.String b,
                                                   java.lang.String c)
                                            throws org.w3c.dom.DOMException
Description copied from interface: org.w3c.dom.DOMImplementation
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.
Specified by:
createDocumentType in interface org.w3c.dom.DOMImplementation
Following copied from interface: org.w3c.dom.DOMImplementation
Parameters:
qualifiedName - The qualified name of the document type to be created.
publicId - The external subset public identifier.
systemId - The external subset system identifier.
Returns:
A new DocumentType node with Node.ownerDocument set to null.
Throws:
org.w3c.dom.DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NAMESPACE_ERR: Raised if the qualifiedName is malformed.
NOT_SUPPORTED_ERR: May be raised by DOM implementations which do not support the "XML" feature, if they choose not to support this method. Other features introduced in the future, by the DOM WG or in extensions defined by other groups, may also demand support for this method; please consult the definition of the feature to see if it requires this method.

hasFeature

public boolean hasFeature(java.lang.String parm1,
                          java.lang.String parm2)
Description copied from interface: org.w3c.dom.DOMImplementation
Test if the DOM implementation implements a specific feature.
Specified by:
hasFeature in interface org.w3c.dom.DOMImplementation
Following copied from interface: org.w3c.dom.DOMImplementation
Parameters:
feature - The name of the feature to test (case-insensitive). The values used by DOM features are defined throughout the DOM Level 3 specifications and listed in the section. The name must be an XML name. To avoid possible conflicts, as a convention, names referring to features defined outside the DOM specification should be made unique.
version - This is the version number of the feature to test. In Level 3, the string can be either "3.0", "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 .
Returns:
true if the feature is implemented in the specified version, false otherwise.

getInterface

public org.w3c.dom.DOMImplementation getInterface(java.lang.String feature)
Description copied from interface: org.w3c.dom.DOMImplementation
This method makes available a DOMImplementation's specialized interface (see ).
Specified by:
getInterface in interface org.w3c.dom.DOMImplementation
Following copied from interface: org.w3c.dom.DOMImplementation
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