1 23 24 package org.enhydra.xml.xmlc.xml; 25 26 import org.enhydra.xml.lazydom.TemplateDOM; 27 import org.enhydra.xml.xmlc.dom.XMLCDomFactory; 28 import org.enhydra.xml.xmlc.dom.lazydom.LazyDomFactory; 29 import org.w3c.dom.Document ; 30 import org.w3c.dom.DocumentType ; 31 32 35 public class TestLazyDOMFactory extends LazyDomFactory { 36 39 public Document createDocument(String namespaceURI, 40 String qualifiedName, 41 DocumentType docType) { 42 Document doc = new TestLazyDOMDocument(docType, null); 43 doc.appendChild(doc.createElementNS(namespaceURI, qualifiedName)); 45 return doc; 46 } 47 48 51 public Document createDocument(TemplateDOM templateDOM) { 52 return new TestLazyDOMDocument(null, templateDOM); 53 } 54 55 58 public String [] getInterfaceName() { 59 return new String [] {TestDocument.class.getName()}; 60 } 61 } 62 | Popular Tags |