de.tudarmstadt.ukp.jwktl.parser.de.components
Class DEEntryLinkHandler

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
      extended by de.tudarmstadt.ukp.jwktl.parser.de.components.DEBlockHandler
          extended by de.tudarmstadt.ukp.jwktl.parser.de.components.DEEntryLinkHandler
All Implemented Interfaces:
IBlockHandler

public class DEEntryLinkHandler
extends DEBlockHandler

Parser component for extracting entry links from the German Wiktionary. Entry links are defined to refer to the information of another dictionary article (e.g., for alternative spellings).

Author:
Christian M. Meyer

Field Summary
protected  String entryLink
           
protected  String entryLinkType
           
 
Fields inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
labels
 
Constructor Summary
DEEntryLinkHandler()
          Initalizes the handler.
 
Method Summary
 boolean canHandle(String blockHeader)
          Return true if the handler requests to process the article constituent starting at the given line of text.
 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.
 
Methods inherited from class de.tudarmstadt.ukp.jwktl.parser.components.BlockHandler
fillContent, getLabels, processBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryLink

protected String entryLink

entryLinkType

protected String entryLinkType
Constructor Detail

DEEntryLinkHandler

public DEEntryLinkHandler()
Initalizes the handler.

Method Detail

canHandle

public boolean canHandle(String blockHeader)
Description copied from interface: IBlockHandler
Return true if the handler requests to process the article constituent starting at the given line of text.

Specified by:
canHandle in interface IBlockHandler
Overrides:
canHandle in class BlockHandler

processHead

public boolean processHead(String textLine,
                           ParsingContext context)
Description copied from interface: IBlockHandler
If the handler requested to process this constituent, this hotspot will be called for processing the section header of this article constituent. Return true if the handler requests to handle also the body of this constituent.

Specified by:
processHead in interface IBlockHandler
Overrides:
processHead in class BlockHandler


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.