|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.nodes.AbstractNode org.htmlparser.nodes.RemarkNode
The remark tag is identified and represented by this class.
Field Summary | |
protected java.lang.String |
mText
The contents of the remark node, or override text. |
Fields inherited from class org.htmlparser.nodes.AbstractNode |
children, mPage, nodeBegin, nodeEnd, parent |
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class org.htmlparser.nodes.AbstractNode |
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.htmlparser.Node |
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition |
Field Detail |
protected java.lang.String mText
Constructor Detail |
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.Method Detail |
public java.lang.String getText()
getText
in interface Remark
getText
in class AbstractNode
public void setText(java.lang.String text)
setText
in interface Remark
setText
in class AbstractNode
text
- The new text for the node.public java.lang.String toPlainTextString()
toPlainTextString
in interface Node
toPlainTextString
in class AbstractNode
public java.lang.String toHtml()
toHtml
in interface Node
toHtml
in class AbstractNode
public java.lang.String toString()
toString
in interface Node
toString
in class AbstractNode
public void accept(NodeVisitor visitor)
accept
in interface Node
accept
in class AbstractNode
visitor
- The NodeVisitor
object to invoke
visitRemarkNode()
on.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |