org.dom4j.tree

Class DefaultEntity

public class DefaultEntity extends FlyweightEntity

DefaultEntity is the default Entity implementation. It is a doubly linked node which supports the parent relationship and can be modified in place.

Version: $Revision: 1.11 $

Author: James Strachan

Constructor Summary
DefaultEntity(String name)
Creates the Entity with the specified name
DefaultEntity(String name, String text)
Creates the Entity with the specified name and text.
DefaultEntity(Element parent, String name, String text)
Creates the Entity with the specified name and text.
Method Summary
ElementgetParent()
booleanisReadOnly()
voidsetName(String name)
voidsetParent(Element parent)
voidsetText(String text)
booleansupportsParent()

Constructor Detail

DefaultEntity

public DefaultEntity(String name)
Creates the Entity with the specified name

Parameters: name is the name of the entity

DefaultEntity

public DefaultEntity(String name, String text)
Creates the Entity with the specified name and text.

Parameters: name is the name of the entity text is the text of the entity

DefaultEntity

public DefaultEntity(Element parent, String name, String text)
Creates the Entity with the specified name and text.

Parameters: parent is the parent element name is the name of the entity text is the text of the entity

Method Detail

getParent

public Element getParent()

isReadOnly

public boolean isReadOnly()

setName

public void setName(String name)

setParent

public void setParent(Element parent)

setText

public void setText(String text)

supportsParent

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

SourceForge