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.
| Modifier and Type | Field and Description |
|---|---|
| private QName | qname
The |
| protected String | value
The value of the |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | FlyweightAttribute(String
is the name of the attribute name, String is the value of the attribute value)Creates the |
| public | FlyweightAttribute(String
is the name of the attribute name, String is the value of the attribute value, Namespace is the namespace of the attribute namespace)Creates the |
| Modifier and Type | Method and Description |
|---|---|
| public QName | getQName()
Implements org. QName of this attribute which represents the
local name, the qualified name and the Namespace.
|
| public String |
| qname | back to summary |
|---|---|
| private QName qname The | |
| value | back to summary |
|---|---|
| protected String value The value of the | |
| FlyweightAttribute | back to summary |
|---|---|
| public FlyweightAttribute(QName qname) | |
| FlyweightAttribute | back to summary |
|---|---|
| public FlyweightAttribute(QName qname, String value) | |
| FlyweightAttribute | back to summary |
|---|---|
| public FlyweightAttribute(String name, String value) Creates the | |
| FlyweightAttribute | back to summary |
|---|---|
| public FlyweightAttribute(String name, String value, Namespace namespace) Creates the | |
| getQName | back to summary |
|---|---|
| public QName getQName() Implements org. Doc from org. Returns the
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements org. Doc from org. Returns the value of the attribute. This method returns the same value as
the
| |