|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.validation.api.Problems
public final class Problems extends java.lang.Object
A collection of problems, to which a Validator can add additional problems.
Constructor and Description |
---|
Problems()
|
Modifier and Type | Method and Description |
---|---|
void |
add(Problem problem)
Add a problem |
void |
add(java.lang.String problem)
Convenience method to add a problem with the specified message and Severity.FATAL |
void |
add(java.lang.String problem,
Severity severity)
Add a problem with the specified severity |
Problem |
getLeadProblem()
Get the first problem of the highest severity |
boolean |
hasFatal()
Determine if this set of problems includes any that are fatal. |
boolean |
isEmpty()
Determine if this set of problems is empty |
void |
putAll(Problems problems)
Dump all problems in another instance of Problems into this one. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Problems()
Method Detail |
---|
public final void add(java.lang.String problem)
problem
- public final void add(java.lang.String problem, Severity severity)
problem
- the messageseverity
- the severitypublic final void add(Problem problem)
problem
- The problempublic final void putAll(Problems problems)
problems
- The other problems.public final boolean isEmpty()
public final boolean hasFatal()
public final Problem getLeadProblem()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |