org.dom4j.tree
public class FlyweightAttribute extends AbstractAttribute
FlyweightAttribute
is a Flyweight pattern implementation of a
singly linked, read-only XML Attribute.
This node could be shared across documents and elements though it does not support the parent relationship.
Version: $Revision: 1.7 $
Field Summary | |
---|---|
protected String | value The value of the Attribute |
Constructor Summary | |
---|---|
FlyweightAttribute(QName qname) | |
FlyweightAttribute(QName qname, String value) | |
FlyweightAttribute(String name, String value)
Creates the Attribute with the specified local name and
value.
| |
FlyweightAttribute(String name, String value, Namespace namespace)
Creates the Attribute with the specified local name, value
and Namespace .
|
Method Summary | |
---|---|
QName | getQName() |
String | getValue() |
Attribute
Attribute
with the specified local name and
value.
Parameters: name is the name of the attribute value is the value of the attribute
Attribute
with the specified local name, value
and Namespace
.
Parameters: name is the name of the attribute value is the value of the attribute namespace is the namespace of the attribute