1 7 8 package org.dom4j.tree; 9 10 import org.dom4j.Namespace; 11 import org.dom4j.QName; 12 13 27 public class FlyweightAttribute extends AbstractAttribute { 28 29 private QName qname; 30 31 32 protected String value; 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 52 public FlyweightAttribute(String name, String value) { 53 this.qname = getDocumentFactory().createQName(name); 54 this.value = value; 55 } 56 57 68 public FlyweightAttribute(String name, String value, Namespace namespace) { 69 this.qname = getDocumentFactory().createQName(name, namespace); 70 this.value = value; 71 } 72 73 public String getValue() { 74 return value; 75 } 76 77 public QName getQName() { 78 return qname; 79 } 80 } 81 82 118 | Popular Tags |