|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TokenHandler
Handler passed to TagTokenizer that will receive callbacks as 'tags' and 'text' are encountered.
TagTokenizer| Method Summary | |
|---|---|
boolean |
shouldProcessTag(java.lang.String name)
Before attempting to parse a tag, the tokenizer will ask the handler whether the tag should be processed - avoiding additional tag parsing makes the tokenizer quicker. |
void |
tag(Tag tag)
Called when tokenizer encounters an HTML tag (open, close or empty). |
void |
text(Text text)
Called when tokenizer encounters anything other than a well-formed HTML tag. |
void |
warning(java.lang.String message,
int line,
int column)
Called when tokenizer encounters something it cannot correctly parse. |
| Method Detail |
|---|
boolean shouldProcessTag(java.lang.String name)
tag(com.opensymphony.module.sitemesh.html.Tag) method.
If false is returned, the tokenizer will not try to parse the tag and pass it to the #text(com.opensymphony.module.sitemesh.html.Text) method,
untouched.
void tag(Tag tag)
void text(Text text)
void warning(java.lang.String message,
int line,
int column)
message - Error messageline - Line number in input that error occuredcolumn - Column number in input that error occured
|
www.opensymphony.com/sitemesh/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||