|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.net.NetCheck
public class NetCheck
Class to represent a network validation check error. NetChecks of FATAL severity prevent the network from running, NetChecks of WARNING severity do not.
Field Summary | |
---|---|
static int |
FATAL
Fatal check severity. |
static int |
WARNING
Non-fatal check severity. |
Constructor Summary | |
---|---|
NetCheck(int severityArg,
java.lang.String messageArg,
java.lang.Object objectArg)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Method to order by message when in TreeSet. |
java.lang.String |
getMessage()
Getter for the error message |
int |
getSeverity()
Getter for the error severity |
java.lang.Object |
getSource()
Getter for the object that caused the error |
boolean |
isFatal()
Method to see if this check is a FATAL. |
boolean |
isWarning()
Method to see if this check is a WARNING. |
void |
setMessage(java.lang.String message)
Setter for the error message |
void |
setSeverity(int severity)
Setter for the error severity |
void |
setSource(java.lang.Object source)
Setter for the object that caused the error |
java.lang.String |
toString()
Produce a String representation of the check. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FATAL
public static final int WARNING
Constructor Detail |
---|
public NetCheck(int severityArg, java.lang.String messageArg, java.lang.Object objectArg)
severityArg
- the severity of the check. Should be FATAL or WARNING.messageArg
- the message assosiated with the check.objectArg
- the network component producing the check.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWarning()
public boolean isFatal()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.Object getSource()
public void setSource(java.lang.Object source)
source
- the source objectpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the error messagepublic int getSeverity()
public void setSeverity(int severity)
severity
- the error severity (either NetCheck.FATAL or NetCheck.WARNING)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |