|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TagVisitor
Handler that receives callbacks as content is parsed.
| Method Summary | |
|---|---|
void |
cdata(java.lang.CharSequence cdata)
Invoked on CDATA sequence. |
void |
comment(java.lang.CharSequence comment)
Invoked on comment. |
void |
condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
java.lang.CharSequence comment)
Invoked on IE conditional comment. |
void |
doctype(java.lang.String name,
java.lang.String publicId,
java.lang.String baseUri)
Invoked on DOCTYPE directive. |
void |
end()
Invoked at the end, after all content is visited. |
void |
error(java.lang.String message)
Warn about parsing error. |
void |
script(Tag tag,
java.lang.CharSequence body)
Invoked on script tag. |
void |
start()
Invoked on very beginning of the visiting. |
void |
style(Tag tag,
java.lang.CharSequence body)
Invoked on style tag. |
void |
tag(Tag tag)
Invoked on tag (open, close or empty). |
void |
text(java.lang.CharSequence text)
Invoked on text i.e. anything other than a tag. |
void |
xml(Tag tag)
Invoked on xml declaration. |
void |
xmp(Tag tag,
java.lang.CharSequence body)
Invoked on xmp tag. |
| Method Detail |
|---|
void start()
void end()
void tag(Tag tag)
tag (open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
void xmp(Tag tag,
java.lang.CharSequence body)
void script(Tag tag,
java.lang.CharSequence body)
void style(Tag tag,
java.lang.CharSequence body)
void comment(java.lang.CharSequence comment)
void text(java.lang.CharSequence text)
void cdata(java.lang.CharSequence cdata)
void xml(Tag tag)
void doctype(java.lang.String name,
java.lang.String publicId,
java.lang.String baseUri)
publicId is null, it is a SYSTEM
directive, otherwise it is PUBLIC.
void condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
java.lang.CharSequence comment)
expression if unmodified expression.
comment is optional additional comment and may be null.
void error(java.lang.String message)
message - parsing error message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||