1 7 8 package org.dom4j.util; 9 10 import org.dom4j.DocumentFactory; 11 import org.dom4j.Element; 12 import org.dom4j.QName; 13 14 25 public class IndexedDocumentFactory extends DocumentFactory { 26 27 protected static transient IndexedDocumentFactory singleton 28 = new IndexedDocumentFactory(); 29 30 37 public static DocumentFactory getInstance() { 38 return singleton; 39 } 40 41 public Element createElement(QName qname) { 44 return new IndexedElement(qname); 45 } 46 47 public Element createElement(QName qname, int attributeCount) { 48 return new IndexedElement(qname, attributeCount); 49 } 50 } 51 52 88 | Popular Tags |