|
||||||||||
| 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 extends java.lang.Object implements java.lang.Comparable<Problem>
Represents a problem produced by a validator.
| Constructor and Description |
|---|
Problem(java.lang.String message,
Severity severity)
Create a new problem with the given message and severity |
| Modifier and Type | Method and Description |
|---|---|
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 severity| Method Detail |
|---|
public Severity severity()
public boolean isWorseThan(Problem other)
other - The other problempublic 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.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||