de.danielnaber.languagetool.rules
Class IncorrectExample

Object
  extended by IncorrectExample

public class IncorrectExample
extends Object

A text, typically a sentence that contains an error.

Since:
0.9.2
Author:
Daniel Naber

Constructor Summary
IncorrectExample(String example)
           
IncorrectExample(String example, String[] corrections)
           
 
Method Summary
 List<String> getCorrections()
          Return the possible corrections.
 String getExample()
          Return the example that contains the error.
 String toString()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncorrectExample

public IncorrectExample(String example)

IncorrectExample

public IncorrectExample(String example,
                        String[] corrections)
Method Detail

getExample

public String getExample()
Return the example that contains the error.

Returns:

getCorrections

public List<String> getCorrections()
Return the possible corrections. May be null.

Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2007 Daniel Naber