org.apache.batik.dom
Class GenericDOMImplementation
java.lang.Object
|
+--org.apache.batik.dom.AbstractDOMImplementation
|
+--org.apache.batik.dom.GenericDOMImplementation
- All Implemented Interfaces:
- DOMImplementation, java.io.Serializable
- public class GenericDOMImplementation
- extends AbstractDOMImplementation
This class implements the DOMImplementation
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOM_IMPLEMENTATION
protected static final DOMImplementation DOM_IMPLEMENTATION
- The default instance of this class.
GenericDOMImplementation
public GenericDOMImplementation()
- Creates a new GenericDOMImplementation object.
getDOMImplementation
public static DOMImplementation getDOMImplementation()
- Returns the default instance of this class.
createDocumentType
public DocumentType createDocumentType(java.lang.String qualifiedName,
java.lang.String publicId,
java.lang.String systemId)
- DOM: Implements
DOMImplementation.createDocumentType(String,String,String)
.- Following copied from interface:
org.w3c.dom.DOMImplementation
- Parameters:
qualifiedNameThe
- qualified name of the document type to be
created.publicIdThe
- external subset public identifier.systemIdThe
- external subset system identifier.- Returns:
- 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.
NAMESPACE_ERR: Raised if the qualifiedName
is
malformed.
createDocument
public Document createDocument(java.lang.String namespaceURI,
java.lang.String qualifiedName,
DocumentType doctype)
throws DOMException
- DOM: Implements
DOMImplementation.createDocument(String,String,DocumentType)
.- Following copied from interface:
org.w3c.dom.DOMImplementation
- Parameters:
namespaceURIThe
- namespace URI of the document element to create.qualifiedNameThe
- qualified name of the document element to be
created.doctypeThe
- 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. - Throws:
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
has a prefix that is "xml" and the
namespaceURI
is different from "
http://www.w3.org/XML/1998/namespace" .
WRONG_DOCUMENT_ERR: Raised if doctype
has already
been used with a different document or was created from a different
implementation.
Copyright © 2002 Apache Software Foundation. All Rights Reserved.