FileDocCategorySizeDatePackage
ASDOMImplementationImpl.javaAPI DocJava SE 5 API5501Fri Aug 26 14:55:42 BST 2005com.sun.org.apache.xerces.internal.dom

ASDOMImplementationImpl

public class ASDOMImplementationImpl extends DOMImplementationImpl implements com.sun.org.apache.xerces.internal.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).

deprecated
version
$Id: ASDOMImplementationImpl.java,v 1.5 2003/07/30 10:30:35 neeraj Exp $
since
PR-DOM-Level-1-19980818.

Fields Summary
static ASDOMImplementationImpl
singleton
Dom implementation singleton.
Constructors Summary
Methods Summary
public com.sun.org.apache.xerces.internal.dom3.as.ASModelcreateAS(boolean isNamespaceAware)
DOM Level 3 WD - Experimental. Creates an ASModel.

param
isNamespaceAware Allow creation of ASModel with this attribute set to a specific value.
return
A null return indicates failure.what is a failure? Could be a system error.

        return new ASModelImpl(isNamespaceAware);
    
public com.sun.org.apache.xerces.internal.dom3.as.DOMASBuildercreateDOMASBuilder()
DOM Level 3 WD - Experimental. Creates an DOMASBuilder.Do we need the method since we already have DOMImplementationLS.createDOMParser?

return
DOMASBuilder

        return new DOMASBuilderImpl();
    
public com.sun.org.apache.xerces.internal.dom3.as.DOMASWritercreateDOMASWriter()
DOM Level 3 WD - Experimental. Creates an DOMASWriter.

return
a DOMASWriter

        String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
    
public static org.w3c.dom.DOMImplementationgetDOMImplementation()
NON-DOM: Obtain and return the single shared object



    //
    // Public methods
    //

             
        
        return singleton;