oracle.xml.parser.v2
Class XMLDOMImplementation

java.lang.Object
  |
  +--oracle.xml.parser.v2.XMLDOMImplementation

public class XMLDOMImplementation
extends java.lang.Object
implements DOMImplementation, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
XMLDOMImplementation()
           
 
Method Summary
TypeMethod
 Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, DocumentType doctype)
          Creates an empty DocumentType node.
 DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
          Creates an XML Document object of the specified type with its document element
 boolean hasFeature(java.lang.String feature, java.lang.String version)
          Test if the DOM implementation implements a specific feature.
 void setFeature(java.lang.String feature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDOMImplementation

public XMLDOMImplementation()
Method Detail

hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)
Test if the DOM implementation implements a specific feature.
Specified by:
hasFeature in interface DOMImplementation
Returns:
true if the feature is implemented ,false otherwise

createDocumentType

public DocumentType createDocumentType(java.lang.String qualifiedName,
                                       java.lang.String publicId,
                                       java.lang.String systemId)
                                throws DOMException
Creates an XML Document object of the specified type with its document element
Specified by:
createDocumentType in interface DOMImplementation
Returns:
the DocumentType object created.
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
Creates an empty DocumentType node. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur.
Specified by:
createDocument in interface DOMImplementation
Returns:
the Document object created. 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 an empty String,or if the qualifiedName has a prefix that is "xml" and 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

setFeature

public void setFeature(java.lang.String feature)
                throws DOMException