|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
lp.trans.GrounderMessage
public class GrounderMessage
An error or warning message that is issued by lparse. It can be related to a specific rule.
| Field Summary | |
|---|---|
private LpRule |
sourceRule
The rule that is the reason of this message. |
private boolean |
warning
Is true if this is a warning message and false if it is
an error message. |
| Constructor Summary | |
|---|---|
GrounderMessage(String message,
LpRule sourceRule,
boolean isWarning)
Creates a new instance of GrounderMessage with the specified
message that relates to the given rule. |
|
GrounderMessage(String message,
LpRule sourceRule,
boolean isWarning,
Throwable cause)
Creates a new instance of GrounderMessage with the specified
message that relates to the given rule. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if obj is a GrounderMessage with the
same members as this one. |
LpRule |
getSourceRule()
Returns the rule that is the reason of this message. |
int |
hashCode()
Overriden in order to maintain the general contract of Object.hashCode(). |
boolean |
isWarning()
Returns true if this is a warning message and false if it
is an error message. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final LpRule sourceRule
null if no
such rule is specified by lparse.
private final boolean warning
true if this is a warning message and false if it is
an error message.
| Constructor Detail |
|---|
public GrounderMessage(String message,
LpRule sourceRule,
boolean isWarning)
GrounderMessage with the specified
message that relates to the given rule.
message - the error or warning messagesourceRule - the rule that is the reason of this error or warningisWarning - true if a warning message should be created,
false if an error message should be created
public GrounderMessage(String message,
LpRule sourceRule,
boolean isWarning,
Throwable cause)
GrounderMessage with the specified
message that relates to the given rule.
message - the error or warning messagesourceRule - the rule that is the reason of this error or warningisWarning - true if a warning message should be created,
false if an error message should be createdcause - the cause of this exception| Method Detail |
|---|
public LpRule getSourceRule()
null
if no such rule is specified by lparse.
public boolean isWarning()
true if this is a warning message and false if it
is an error message.
public boolean equals(Object obj)
true if obj is a GrounderMessage with the
same members as this one.
equals in class Objectobj - the object to compare with
public int hashCode()
Object.hashCode().
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||