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

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.aceowl.AToEverySuggestion
All Implemented Interfaces:
SentenceSuggestion

public class AToEverySuggestion
extends java.lang.Object
implements SentenceSuggestion

This class implements a change suggestions for ACE sentences starting with "a". Such sentences are usually meant to invoke universal quantification. In such cases the initial "a" should be replaced by "every".

Author:
Tobias Kuhn

Method Summary
 java.lang.String getMessage()
          Returns the message to be presented to the user.
 java.lang.String[] getOptions()
          Returns the options given to the user to change or not change the sentence.
 Sentence getSentence(java.lang.String option)
          Returns the possibly changed sentence accoring to the option chosen by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessage

public java.lang.String getMessage()
Description copied from interface: SentenceSuggestion
Returns the message to be presented to the user. This message should explain the suggested change.

Specified by:
getMessage in interface SentenceSuggestion
Returns:
The message text.

getOptions

public java.lang.String[] getOptions()
Description copied from interface: SentenceSuggestion
Returns the options given to the user to change or not change the sentence.

Specified by:
getOptions in interface SentenceSuggestion
Returns:
The options.

getSentence

public Sentence getSentence(java.lang.String option)
Description copied from interface: SentenceSuggestion
Returns the possibly changed sentence accoring to the option chosen by the user.

Specified by:
getSentence in interface SentenceSuggestion
Parameters:
option - The chosen option.
Returns:
The sentence, possibly changed.


Copyright 2008-2012, AceWiki developers