1 57 58 package com.sun.org.apache.xerces.internal.dom; 59 60 import org.w3c.dom.DOMException ; 61 import org.w3c.dom.DOMImplementation ; 62 63 import com.sun.org.apache.xerces.internal.dom3.as.DOMImplementationAS; 64 import com.sun.org.apache.xerces.internal.dom3.as.ASModel; 65 import com.sun.org.apache.xerces.internal.dom3.as.DOMASBuilder; 66 import com.sun.org.apache.xerces.internal.dom3.as.DOMASWriter; 67 import com.sun.org.apache.xerces.internal.parsers.DOMASBuilderImpl; 68 69 70 71 86 public class ASDOMImplementationImpl extends DOMImplementationImpl 87 implements DOMImplementationAS { 88 89 90 92 93 static ASDOMImplementationImpl singleton = new ASDOMImplementationImpl(); 94 95 96 100 101 public static DOMImplementation getDOMImplementation() { 102 return singleton; 103 } 104 105 110 118 public ASModel createAS(boolean isNamespaceAware){ 119 return new ASModelImpl(isNamespaceAware); 120 } 121 122 128 public DOMASBuilder createDOMASBuilder(){ 129 return new DOMASBuilderImpl(); 130 } 131 132 133 138 public DOMASWriter createDOMASWriter(){ 139 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 140 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 141 } 142 143 144 145 } | Popular Tags |