|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.protocol.http.documentvalidation.HtmlDocumentParser
Lightweight document parser for HTML. This parser is only intended to process well formed and simple HTML of the kind that would generally be utilised during testing.
| Field Summary | |
static int |
CLOSE_TAG
Constant for close tag token. |
static int |
COMMENT
Constant for comment token. |
static int |
END
Constant for end token. |
static int |
OPEN_TAG
Constant for open tag token. |
static int |
OPENCLOSE_TAG
Constant for open/close tag token. |
static int |
TEXT
Constant for text token. |
static int |
UNKNOWN
constant for unknown token. |
| Constructor Summary | |
HtmlDocumentParser(java.lang.String document)
Create the parser for the current document. |
|
| Method Summary | |
java.util.Map |
getAttributes()
Get the attributes of the tag. |
java.lang.String |
getComment()
Get the comment. |
int |
getNextToken()
Iterates through the document searching for tokens. |
java.lang.String |
getTag()
Get the tag name. |
java.lang.String |
getText()
Get the text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CLOSE_TAG
public static final int COMMENT
public static final int END
public static final int OPEN_TAG
public static final int OPENCLOSE_TAG
public static final int TEXT
public static final int UNKNOWN
| Constructor Detail |
public HtmlDocumentParser(java.lang.String document)
document - The document to parse| Method Detail |
public java.util.Map getAttributes()
public java.lang.String getComment()
public int getNextToken()
public java.lang.String getTag()
public java.lang.String getText()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||