ch.uzh.ifi.attempto.acewiki.aceowl
Class ACEHandler

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.AbstractLanguageHandler
      extended by ch.uzh.ifi.attempto.acewiki.core.MonolingualHandler
          extended by ch.uzh.ifi.attempto.acewiki.aceowl.ACEHandler
All Implemented Interfaces:
LanguageHandler

public class ACEHandler
extends MonolingualHandler

This is a language handler implementation for ACE.

Author:
Tobias Kuhn

Constructor Summary
ACEHandler()
          Creates a new language handler for ACE.
 
Method Summary
 java.util.List<Sentence> extractSentences(TextContainer tc, PredictiveParser pp)
          Extracts the sentences from a text container and/or a parser state.
 EditorController getEditorController()
          Returns the controller object for the predictive editor.
 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.
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.MonolingualHandler
getLanguage
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.core.AbstractLanguageHandler
getLexiconChanger, setLexiconChanger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ACEHandler

public ACEHandler()
Creates a new language handler for ACE.

Method Detail

init

public void init(Ontology ontology)
Description copied from interface: LanguageHandler
This is the first method to be called and provides the ontology object.

Parameters:
ontology - The ontology object.

getTextOperator

public TextOperator getTextOperator()
Description copied from interface: LanguageHandler
Returns the text operator.

Returns:
The text operator.

extractSentences

public java.util.List<Sentence> extractSentences(TextContainer tc,
                                                 PredictiveParser pp)
Description copied from interface: LanguageHandler
Extracts the sentences from a text container and/or a parser state.

Parameters:
tc - The text container.
pp - The parser object with the parsed text.
Returns:
A list of sentences.

getEditorController

public EditorController getEditorController()
Description copied from interface: LanguageHandler
Returns the controller object for the predictive editor.

Returns:
The editor controller.

getPredictiveParser

public PredictiveParser getPredictiveParser()
Description copied from interface: LanguageHandler
Returns the predictive parser to be used within the predictive editor.

Returns:
The predictive parser.

getSuggestion

public SentenceSuggestion getSuggestion(Sentence sentence)
Description copied from interface: LanguageHandler
Returns a suggestion to change a newly created sentence, or null (no suggestion).

Specified by:
getSuggestion in interface LanguageHandler
Overrides:
getSuggestion in class AbstractLanguageHandler
Parameters:
sentence - The newly created sentence.
Returns:
A suggestion to change the sentence or null.


Copyright 2008-2012, AceWiki developers