|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.protocol.http.documentvalidation.HtmlDocumentParser
public class 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 utilized 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(String document)
Create the parser for the current document. |
Method Summary | |
---|---|
Map<String,String> |
getAttributes()
Get the attributes of the tag. |
String |
getComment()
Get the comment. |
int |
getNextToken()
Iterates through the document searching for tokens. |
String |
getTag()
Get the tag name. |
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(String document)
document
- The document to parseMethod Detail |
---|
public Map<String,String> getAttributes()
public String getComment()
public int getNextToken()
public String getTag()
public String getText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |