adapforms.runtime.validation
Class ValidationProblem

java.lang.Object
  extended by adapforms.runtime.validation.ValidationProblem

public class ValidationProblem
extends java.lang.Object

Validation problem that contains a human-readable problem description and a problem severity/type. The error message should be as short as possible, and fit in a single line.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
ValidationProblem(java.lang.String message)
          Create a new validation error with severity ValidationSeverity.Error.
ValidationProblem(ValidationSeverity severity, java.lang.String message)
           
 
Method Summary
 java.lang.String getMessage()
          The error message to display.
 ValidationSeverity getSeverity()
          The severity / type of the error.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationProblem

public ValidationProblem(java.lang.String message)
Create a new validation error with severity ValidationSeverity.Error.


ValidationProblem

public ValidationProblem(ValidationSeverity severity,
                         java.lang.String message)
Method Detail

getMessage

public java.lang.String getMessage()
The error message to display.


getSeverity

public ValidationSeverity getSeverity()
The severity / type of the error.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object