org.dom4j.tree

Class DefaultAttribute

public class DefaultAttribute extends FlyweightAttribute

DefaultAttribute implements a doubly linked node which supports the parent relationship and is mutable.

Version: $Revision: 1.13 $

Author: James Strachan

Constructor Summary
DefaultAttribute(QName qname)
DefaultAttribute(QName qname, String value)
DefaultAttribute(Element parent, QName qname, String value)
DefaultAttribute(String name, String value)
Creates the Attribute with the specified local name and value.
DefaultAttribute(String name, String value, Namespace namespace)
Creates the Attribute with the specified local name, value and Namespace.
DefaultAttribute(Element parent, String name, String value, Namespace namespace)
Creates the Attribute with the specified local name, value and Namespace.
Method Summary
ElementgetParent()
booleanisReadOnly()
voidsetParent(Element parent)
voidsetValue(String value)
booleansupportsParent()

Constructor Detail

DefaultAttribute

public DefaultAttribute(QName qname)

DefaultAttribute

public DefaultAttribute(QName qname, String value)

DefaultAttribute

public DefaultAttribute(Element parent, QName qname, String value)

DefaultAttribute

public DefaultAttribute(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

DefaultAttribute

public DefaultAttribute(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

DefaultAttribute

public DefaultAttribute(Element parent, String name, String value, Namespace namespace)
Creates the Attribute with the specified local name, value and Namespace.

Parameters: parent is the parent element name is the name of the attribute value is the value of the attribute namespace is the namespace of the attribute

Method Detail

getParent

public Element getParent()

isReadOnly

public boolean isReadOnly()

setParent

public void setParent(Element parent)

setValue

public void setValue(String value)

supportsParent

public boolean supportsParent()
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge