1 7 8 package org.dom4j.util; 9 10 import org.dom4j.Attribute; 11 import org.dom4j.DocumentFactory; 12 import org.dom4j.Element; 13 import org.dom4j.QName; 14 15 28 public class UserDataDocumentFactory extends DocumentFactory { 29 30 protected static transient UserDataDocumentFactory singleton 31 = new UserDataDocumentFactory(); 32 33 40 public static DocumentFactory getInstance() { 41 return singleton; 42 } 43 44 public Element createElement(QName qname) { 47 return new UserDataElement(qname); 48 } 49 50 public Attribute createAttribute(Element owner, QName qname, String value) { 51 return new UserDataAttribute(qname, value); 52 } 53 } 54 55 91 | Popular Tags |