|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LanguageHandler
This interface represents the language-specific parts of the AceWiki engine.
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. |
LexiconChanger |
getLexiconChanger(java.lang.String type)
Returns a lexicon changer object for the given lexical type. |
PredictiveParser |
getPredictiveParser()
Returns the predictive parser to be used within the predictive editor. |
SentenceSuggestion |
getSuggestion(Sentence sentence)
Returns a suggestion to change a newly created sentence, or null (no suggestion). |
TextOperator |
getTextOperator()
Returns the text operator. |
void |
init(Ontology ontology)
This is the first method to be called and provides the ontology object. |
Method Detail |
---|
void init(Ontology ontology)
ontology
- The ontology object.TextOperator getTextOperator()
java.lang.String getLanguage()
java.util.List<Sentence> extractSentences(TextContainer tc, PredictiveParser parser)
tc
- The text container.parser
- The parser object with the parsed text.
PredictiveParser getPredictiveParser()
EditorController getEditorController()
LexiconChanger getLexiconChanger(java.lang.String type)
type
- The lexical type.
SentenceSuggestion getSuggestion(Sentence sentence)
sentence
- The newly created sentence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |