org.cogroo.entities.impl
Class MistakeImpl
java.lang.Object
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
MistakeImpl
public MistakeImpl(String id,
int priority,
String message,
String shortMessage,
String[] suggestions,
int start,
int end,
List<Example> examples,
String text)
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.