org.dom4j.tree

Class DefaultComment

public class DefaultComment extends FlyweightComment

DefaultComment is the default Comment 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
DefaultComment(String text)
DOCUMENT ME!
DefaultComment(Element parent, String text)
DOCUMENT ME!
Method Summary
ElementgetParent()
booleanisReadOnly()
voidsetParent(Element parent)
voidsetText(String text)
booleansupportsParent()

Constructor Detail

DefaultComment

public DefaultComment(String text)
DOCUMENT ME!

Parameters: text is the Comment text

DefaultComment

public DefaultComment(Element parent, String text)
DOCUMENT ME!

Parameters: parent is the parent element text is the Comment text

Method Detail

getParent

public Element getParent()

isReadOnly

public boolean isReadOnly()

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