org.cogroo.entities.impl
Class MistakeImpl

java.lang.Object
  extended by org.cogroo.entities.impl.MistakeImpl
All Implemented Interfaces:
Serializable, Mistake

public class MistakeImpl
extends Object
implements Mistake, Serializable

Implements a Mistake that represents grammar errors.

Author:
Marcelo Suzumura
See Also:
Serialized Form

Constructor Summary
MistakeImpl(String id, int priority, String message, String shortMessage, String[] suggestions, int start, int end, List<Example> examples, String text)
           
 
Method Summary
 String getContext()
           
 int getEnd()
           
 String getFullMessage()
           
 String getLongMessage()
           
 String getRuleIdentifier()
           
 int getRulePriority()
           
 String getShortMessage()
           
 int getStart()
           
 String[] getSuggestions()
           
 void setEnd(int end)
           
 void setStart(int start)
           
 void setSuggestions(String[] newSuggestions)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MistakeImpl

public MistakeImpl(String id,
                   int priority,
                   String message,
                   String shortMessage,
                   String[] suggestions,
                   int start,
                   int end,
                   List<Example> examples,
                   String text)
Method Detail

getLongMessage

public String getLongMessage()
Specified by:
getLongMessage in interface Mistake

getShortMessage

public String getShortMessage()
Specified by:
getShortMessage in interface Mistake

getFullMessage

public String getFullMessage()
Specified by:
getFullMessage in interface Mistake

getSuggestions

public String[] getSuggestions()
Specified by:
getSuggestions in interface Mistake

getStart

public int getStart()
Specified by:
getStart in interface Mistake

setStart

public void setStart(int start)
Parameters:
start - the start to set

getEnd

public int getEnd()
Specified by:
getEnd in interface Mistake

setEnd

public void setEnd(int end)
Parameters:
end - the end to set

toString

public String toString()
Overrides:
toString in class Object

getRuleIdentifier

public String getRuleIdentifier()
Specified by:
getRuleIdentifier in interface Mistake

getContext

public String getContext()
Specified by:
getContext in interface Mistake

getRulePriority

public int getRulePriority()
Specified by:
getRulePriority in interface Mistake

setSuggestions

public void setSuggestions(String[] newSuggestions)
Specified by:
setSuggestions in interface Mistake


Copyright © 2012-2013 CoGrOO. All Rights Reserved.