|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.dbsystems.simplescrape.AbstractHTMLToken
de.dbsystems.simplescrape.HTMLComment
public class HTMLComment
Class for holding HTML-comments. These are all texts surrounded by
| Constructor Summary | |
|---|---|
HTMLComment(java.lang.String text)
Constructor for a comment |
|
| Method Summary | |
|---|---|
java.lang.String |
getComment()
The content of this comment, without the surrounding markers. |
boolean |
match(AbstractHTMLToken other,
ScrapeOptions options)
Determines whether two tokens match. |
java.lang.String |
toString()
Returns the HTML-representation of this comment, including the comment-markers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HTMLComment(java.lang.String text)
text - The content of the comment, without the surrounding markers.
Example: "This is a comment", not ""| Method Detail |
|---|
public boolean match(AbstractHTMLToken other,
ScrapeOptions options)
AbstractHTMLToken
match in class AbstractHTMLTokenother - The search-HtmlToken to be tested against.options - A set of options. Relevant options are attributesStrict, trimText and
ignoreCase.
public java.lang.String getComment()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||