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
 
| 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
 DocumentTypenode. | 
|  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 | 
 
DOMImplementationImpl
public DOMImplementationImpl()
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: 
- createDocumentin 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- doctypeis not- null, its- Node.ownerDocumentattribute is set to the document 
   being created.
- Returns:
- A new Documentobject with its document element. 
   If theNamespaceURI,qualifiedName, anddoctypearenull, the returnedDocumentis 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- qualifiedNameis 
   malformed, if the- qualifiedNamehas a prefix and the- namespaceURIis- null, or if the- qualifiedNameis- nulland the- namespaceURIis different from- null, or 
   if the- qualifiedNamehas a prefix that is "xml" and 
   the- namespaceURIis 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- doctypehas 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 DocumentTypenode. 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 aDocumentType.
- 
- Specified by: 
- createDocumentTypein 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 DocumentTypenode withNode.ownerDocumentset tonull.
- Throws:
- org.w3c.dom.DOMException- INVALID_CHARACTER_ERR: Raised if the specified qualified name 
   contains an illegal character.
 NAMESPACE_ERR: Raised if the- qualifiedNameis 
   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: 
- hasFeaturein 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- nullor empty string, supporting any 
   version of the feature causes the method to return- true.
- Returns:
- trueif the feature is implemented in the 
   specified version,- falseotherwise.
 
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: 
- getInterfacein 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 DOMImplementationwhich 
   implements the specialized APIs of the specified feature, if any, 
   ornullif there is no alternateDOMImplementationobject which implements interfaces 
   associated with that feature. Any alternateDOMImplementationreturned by this method must 
   delegate to the primary coreDOMImplementationand not 
   return results inconsistent with the primaryDOMImplementation