public class RemarkNode extends AbstractNode implements Remark
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mText
The contents of the remark node, or override text.
|
| Constructor and Description |
|---|
RemarkNode(Page page,
int start,
int end)
Constructor takes in the page and beginning and ending posns.
|
RemarkNode(java.lang.String text)
Constructor takes in the text string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(NodeVisitor visitor)
Remark visiting code.
|
java.lang.String |
getText()
Returns the text contents of the comment tag.
|
void |
setText(java.lang.String text)
Sets the string contents of the node.
|
java.lang.String |
toHtml()
Return The full HTML remark.
|
java.lang.String |
toPlainTextString()
Return the remark text.
|
java.lang.String |
toString()
Print the contents of the remark tag.
|
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPositionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, collectInto, doSemanticAction, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPositionprotected java.lang.String mText
public RemarkNode(java.lang.String text)
text - The string node text. For correct generation of HTML, this
should not contain representations of tags (unless they are balanced).public RemarkNode(Page page, int start, int end)
page - The page this remark is on.start - The beginning position of the remark.end - The ending positiong of the remark.public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String toPlainTextString()
toPlainTextString in interface NodetoPlainTextString in class AbstractNodepublic java.lang.String toHtml()
toHtml in interface NodetoHtml in class AbstractNodepublic java.lang.String toString()
toString in interface NodetoString in class AbstractNodepublic void accept(NodeVisitor visitor)
accept in interface Nodeaccept in class AbstractNodevisitor - The NodeVisitor object to invoke
visitRemarkNode() on.HTML Parser is an open source library released under LGPL.