1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.DOMException ; 20 import org.w3c.dom.DOMImplementation ; 21 22 import org.apache.xerces.dom3.as.DOMImplementationAS; 23 import org.apache.xerces.dom3.as.ASModel; 24 import org.apache.xerces.dom3.as.DOMASBuilder; 25 import org.apache.xerces.dom3.as.DOMASWriter; 26 import org.apache.xerces.parsers.DOMASBuilderImpl; 27 28 29 30 45 public class ASDOMImplementationImpl extends DOMImplementationImpl 46 implements DOMImplementationAS { 47 48 49 51 52 static ASDOMImplementationImpl singleton = new ASDOMImplementationImpl(); 53 54 55 59 60 public static DOMImplementation getDOMImplementation() { 61 return singleton; 62 } 63 64 69 77 public ASModel createAS(boolean isNamespaceAware){ 78 return new ASModelImpl(isNamespaceAware); 79 } 80 81 87 public DOMASBuilder createDOMASBuilder(){ 88 return new DOMASBuilderImpl(); 89 } 90 91 92 97 public DOMASWriter createDOMASWriter(){ 98 String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null); 99 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, msg); 100 } 101 102 103 104 } | Popular Tags |