|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.validation.api.Problem
public final class Problem
Represents a problem produced by a validator.
Constructor Summary | |
---|---|
Problem(java.lang.String message,
Severity severity)
Create a new problem with the given message and severity |
Method Summary | |
---|---|
int |
compareTo(Problem o)
Compare, such that most severe Problems will appear last, least first |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getMessage()
Get the localized, human-readable description of the problem |
int |
hashCode()
|
boolean |
isFatal()
Convenience method to determine if this problem is of Severity.FATAL severity |
boolean |
isWorseThan(Problem other)
Determine if this problem is more severe than another |
Severity |
severity()
Get the severity of this problem. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Problem(java.lang.String message, Severity severity)
message
- A localized, human readable messageseverity
- The severityMethod Detail |
---|
public Severity severity()
public boolean isWorseThan(Problem other)
other
- The other problem
public boolean isFatal()
public java.lang.String getMessage()
public int compareTo(Problem o)
compareTo
in interface java.lang.Comparable<Problem>
o
-
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |