|
|||||||||
| 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.TextToken
public class TextToken
Represents tokens containing text data in an HTML-file. This is all data outside of tags and comments. Tokens can span multiple words, sentences and lines.
| Constructor Summary | |
|---|---|
TextToken(java.lang.String text)
Creates a new TextToken, initializing it with the provided text. |
|
| Method Summary | |
|---|---|
java.lang.String |
getText()
Returns the text-content of this token. |
boolean |
match(AbstractHTMLToken other,
ScrapeOptions options)
Determines whether two tokens match. |
java.lang.String |
toString()
Returns the text-content of this token. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextToken(java.lang.String text)
text - The text this token is supposed to hold.| Method Detail |
|---|
public java.lang.String getText()
public java.lang.String toString()
toString in class java.lang.ObjectgetText()
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||