|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBlockHandler
A handler encapsulated the extraction of the information items encoded in a certain article constituent. There might be, for example, a handler for extracting pronunciation information.
Method Summary | |
---|---|
boolean |
canHandle(String blockHeader)
Return true if the handler requests to process the article
constituent starting at the given line of text. |
void |
fillContent(ParsingContext context)
This hotspot is invoked if the parser releases this handler. |
boolean |
processBody(String line,
ParsingContext context)
If the handler requested to process the body of this constituent, this hotspot will be called for processing each line of the constituent's body. |
boolean |
processHead(String line,
ParsingContext context)
If the handler requested to process this constituent, this hotspot will be called for processing the section header of this article constituent. |
Method Detail |
---|
boolean canHandle(String blockHeader)
true
if the handler requests to process the article
constituent starting at the given line of text.
boolean processHead(String line, ParsingContext context)
true
if the handler
requests to handle also the body of this constituent.
boolean processBody(String line, ParsingContext context)
true
if the handler requests to handle also
the next line using this handler.
void fillContent(ParsingContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |