1 9 10 package org.ozoneDB.xml.dom4j.o3impl; 11 12 import org.dom4j.Namespace; 13 import org.dom4j.NodeFactory; 14 import org.dom4j.QName; 15 16 25 public class FlyweightAttribute extends AbstractAttribute { 26 27 28 private QName qname; 29 30 31 protected String value; 32 33 34 public FlyweightAttribute(QName qname) { 35 this.qname = qname; 36 } 37 38 public FlyweightAttribute(QName qname, String value) { 39 this.qname = qname; 40 this.value = value; 41 } 42 43 50 public FlyweightAttribute(NodeFactory nodeFactory, String name, String value) { 51 setNodeFactory(nodeFactory); 52 this.qname = getNodeFactory().createQName(name); 53 this.value = value; 54 } 55 56 64 public FlyweightAttribute(NodeFactory nodeFactory, String name, String value, Namespace namespace) { 65 setNodeFactory(nodeFactory); 66 this.qname = getNodeFactory().createQName(name, namespace); 67 this.value = value; 68 } 69 70 public String getValue() { 71 return value; 72 } 73 74 public QName getQName() { 75 return qname; 76 } 77 } 78 79 80 124 | Popular Tags |