|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.ape.Message
public class Message
This class represents a warning or error message of the ACE parser.
| Constructor Summary | |
|---|---|
Message(java.lang.String importance,
java.lang.String type,
java.lang.Integer sentenceId,
java.lang.Integer tokenId,
java.lang.String value,
java.lang.String repair)
Creates a new Message object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getRepair()
Returns an suggestion how to react on the error or warning. |
java.lang.Integer |
getSentenceId()
Returns the sentence number that locates the reason for the error/warning message. |
java.lang.Integer |
getTokenId()
Returns the token number that locates the reason for the error/warning message. |
java.lang.String |
getType()
Returns the type of the error/warning message. |
java.lang.String |
getValue()
Returns the value of the error/warning message. |
boolean |
isError()
Returns true if this message is an error message, or false if it is only a warning message. |
java.lang.String |
toString()
Returns a pretty-printed error/warning message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Message(java.lang.String importance,
java.lang.String type,
java.lang.Integer sentenceId,
java.lang.Integer tokenId,
java.lang.String value,
java.lang.String repair)
importance - The importance of the message, e.g. "error", "warning"type - The type of the message, e.g. "sentence", "token"sentenceId - The number of the problematic sentence, or null if unknowntokenId - The number of the problematic token, or null if unknownvalue - The value of the message (e.g. a misspelled word)repair - The description that helps to resolve the error or warning| Method Detail |
|---|
public boolean isError()
public java.lang.String getType()
public java.lang.Integer getSentenceId()
public java.lang.Integer getTokenId()
public java.lang.String getValue()
public java.lang.String getRepair()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||