|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.AbstractLanguageHandler
ch.uzh.ifi.attempto.acewiki.gf.GFHandler
public class GFHandler
This is a language handler for languages written in GF.
| Constructor Summary | |
|---|---|
GFHandler(java.lang.String language,
GFGrammar gfGrammar)
Creates a new GF handler for the given language. |
|
| Method Summary | |
|---|---|
java.util.List<Sentence> |
extractSentences(TextContainer tc,
PredictiveParser parser)
Extracts the sentences from a text container and/or a parser state. |
EditorController |
getEditorController()
Returns the controller object for the predictive editor. |
java.lang.String |
getLanguage()
Returns the language of this language handler. |
PredictiveParser |
getPredictiveParser()
Returns the predictive parser to be used within the predictive editor. |
TextOperator |
getTextOperator()
Returns the text operator. |
void |
init(Ontology ontology)
This is the first method to be called and provides the ontology object. |
| Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractLanguageHandler |
|---|
getLexiconChanger, getSuggestion, setLexiconChanger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GFHandler(java.lang.String language,
GFGrammar gfGrammar)
language - The name of the language.gfGrammar - The grammar object.| Method Detail |
|---|
public java.lang.String getLanguage()
LanguageHandler
public void init(Ontology ontology)
LanguageHandler
ontology - The ontology object.public TextOperator getTextOperator()
LanguageHandler
public java.util.List<Sentence> extractSentences(TextContainer tc,
PredictiveParser parser)
LanguageHandler
tc - The text container.parser - The parser object with the parsed text.
public PredictiveParser getPredictiveParser()
LanguageHandler
public EditorController getEditorController()
LanguageHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||