public class ENWordLanguageHandler extends ENBlockHandler implements IBlockHandler
| Modifier and Type | Field and Description |
|---|---|
protected ILanguage |
language |
protected static Pattern |
LANGUAGE_HEADER |
labels| Constructor and Description |
|---|
ENWordLanguageHandler() |
| Modifier and Type | Method and Description |
|---|---|
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 textLine,
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 textLine,
ParsingContext context)
If the handler requested to process this constituent, this hotspot
will be called for processing the section header of this
article constituent.
|
getLabelsprotected static final Pattern LANGUAGE_HEADER
protected ILanguage language
public boolean canHandle(String blockHeader)
IBlockHandlertrue if the handler requests to process the article
constituent starting at the given line of text.canHandle in interface IBlockHandlercanHandle in class BlockHandlerpublic boolean processHead(String textLine, ParsingContext context)
IBlockHandlertrue if the handler
requests to handle also the body of this constituent.processHead in interface IBlockHandlerprocessHead in class BlockHandlerpublic boolean processBody(String textLine, ParsingContext context)
IBlockHandlertrue if the handler requests to handle also
the next line using this handler.processBody in interface IBlockHandlerprocessBody in class BlockHandlerpublic void fillContent(ParsingContext context)
IBlockHandlerfillContent in interface IBlockHandlerfillContent in class BlockHandlerCopyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.