Class Problem
java.lang.Object
org.netbeans.validation.api.Problem
- All Implemented Interfaces:
Comparable<Problem>
Represents a problem produced by a validator.
- Author:
- Tim Boudreau
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare, such that most severe Problems will appear first, least lastbooleanGet the localized, human-readable description of the probleminthashCode()booleanisFatal()Convenience method to determine if this problem is of Severity.FATAL severityseverity()Get theSeverityof this Problem.toString()static ProblemDetermine which Problem is more severe.
-
Constructor Details
-
Problem
-
-
Method Details
-
severity
Get theSeverityof this Problem. The severity indicates whether the user should be blocked from further action until the problem is corrected, or if continuing with a warning is reasonable. It also determines the warning icon which can be displayed to the user.- Returns:
- The severity of the Problem
-
worst
-
isFatal
public boolean isFatal()Convenience method to determine if this problem is of Severity.FATAL severity- Returns:
- true if severity() == Severity.FATAL
-
getMessage
Get the localized, human-readable description of the problem- Returns:
- The message
-
compareTo
Compare, such that most severe Problems will appear first, least last- Specified by:
compareToin interfaceComparable<Problem>- Parameters:
o-- Returns:
- the difference in severity as an integer
-
equals
-
toString
-
hashCode
-