org.dom4j.tree

Class FlyweightAttribute

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 $

Author: James Strachan

Field Summary
protected Stringvalue
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
QNamegetQName()
StringgetValue()

Field Detail

value

protected String value
The value of the Attribute

Constructor Detail

FlyweightAttribute

public FlyweightAttribute(QName qname)

FlyweightAttribute

public FlyweightAttribute(QName qname, String value)

FlyweightAttribute

public FlyweightAttribute(String name, String value)
Creates the Attribute with the specified local name and value.

Parameters: name is the name of the attribute value is the value of the attribute

FlyweightAttribute

public FlyweightAttribute(String name, String value, Namespace namespace)
Creates the 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

Method Detail

getQName

public QName getQName()

getValue

public String getValue()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge