org.apache.xerces.dom

Class ASDOMImplementationImpl

Implemented Interfaces:
org.w3c.dom.DOMImplementation, org.apache.xerces.dom3.as.DOMImplementationAS, org.w3c.dom.ls.DOMImplementationLS

public class ASDOMImplementationImpl
extends DOMImplementationImpl
implements org.apache.xerces.dom3.as.DOMImplementationAS

The DOMImplementation class is description of a particular implementation of the Document Object Model. As such its data is static, shared by all instances of this implementation.

The DOM API requires that it be a real object rather than static methods. However, there's nothing that says it can't be a singleton, so that's how I've implemented it.

This particular class, along with DocumentImpl, supports the DOM Core, DOM Level 2 optional mofules, and Abstract Schemas (Experimental).

Version:
$Id: ASDOMImplementationImpl.java 319807 2004-02-24 23:23:20Z mrglavas $
Since:
PR-DOM-Level-1-19980818.

Fields inherited from interface org.w3c.dom.ls.DOMImplementationLS

MODE_ASYNCHRONOUS, MODE_SYNCHRONOUS

Method Summary

org.apache.xerces.dom3.as.ASModel
createAS(boolean isNamespaceAware)
DOM Level 3 WD - Experimental.
org.apache.xerces.dom3.as.DOMASBuilder
createDOMASBuilder()
DOM Level 3 WD - Experimental.
org.apache.xerces.dom3.as.DOMASWriter
createDOMASWriter()
DOM Level 3 WD - Experimental.
static org.w3c.dom.DOMImplementation
getDOMImplementation()
NON-DOM: Obtain and return the single shared object

Methods inherited from class org.apache.xerces.dom.DOMImplementationImpl

createDocument, getDOMImplementation, hasFeature

Methods inherited from class org.apache.xerces.dom.CoreDOMImplementationImpl

assignDocTypeNumber, assignDocumentNumber, createDocument, createDocumentType, createLSInput, createLSOutput, createLSParser, createLSSerializer, getDOMImplementation, getFeature, hasFeature

Method Details

createAS

public org.apache.xerces.dom3.as.ASModel createAS(boolean isNamespaceAware)
DOM Level 3 WD - Experimental. Creates an ASModel.
Specified by:
createAS in interface org.apache.xerces.dom3.as.DOMImplementationAS
Parameters:
isNamespaceAware - Allow creation of ASModel with this attribute set to a specific value.
Returns:
A null return indicates failure.what is a failure? Could be a system error.

createDOMASBuilder

public org.apache.xerces.dom3.as.DOMASBuilder createDOMASBuilder()
DOM Level 3 WD - Experimental. Creates an DOMASBuilder.Do we need the method since we already have DOMImplementationLS.createDOMParser?
Specified by:
createDOMASBuilder in interface org.apache.xerces.dom3.as.DOMImplementationAS
Returns:
DOMASBuilder

createDOMASWriter

public org.apache.xerces.dom3.as.DOMASWriter createDOMASWriter()
DOM Level 3 WD - Experimental. Creates an DOMASWriter.
Specified by:
createDOMASWriter in interface org.apache.xerces.dom3.as.DOMImplementationAS
Returns:
a DOMASWriter

getDOMImplementation

public static org.w3c.dom.DOMImplementation getDOMImplementation()
NON-DOM: Obtain and return the single shared object
Overrides:
getDOMImplementation in interface DOMImplementationImpl

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.