Package org.languagetool.rules
Class IncorrectExample
- java.lang.Object
-
- org.languagetool.rules.ExampleSentence
-
- org.languagetool.rules.IncorrectExample
-
public final class IncorrectExample extends ExampleSentence
A text, typically a sentence, that contains an error.- Since:
- 0.9.2
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
corrections
-
Fields inherited from class org.languagetool.rules.ExampleSentence
example
-
-
Constructor Summary
Constructors Constructor Description IncorrectExample(java.lang.String example)
IncorrectExample(java.lang.String example, java.util.List<java.lang.String> corrections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getCorrections()
Return the possible corrections.java.lang.String
toString()
-
Methods inherited from class org.languagetool.rules.ExampleSentence
getExample
-
-
-
-
Method Detail
-
getCorrections
public java.util.List<java.lang.String> getCorrections()
Return the possible corrections.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classExampleSentence
-
-