Interface IStatus

All Superinterfaces:
Serializable

public interface IStatus extends Serializable
status base construct - used by bean values on validation. no severity is defined. the status OK, WARN and ERROR should fulfil a validation status.
Version:
$Revision$
Author:
Thomas Schneider
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final IStatus
    simple ok status. should be used if you have a status without warnings and errors
    static final String[]
    status names
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    if an error occurred, the exception will be returned, otherwise null
    if a status has an error or a warning, the message will be returned -otherwise it returns null
    boolean
    ok()
    returns true, if a status has no warnings or errors
  • Field Details

  • Method Details

    • ok

      boolean ok()
      returns true, if a status has no warnings or errors
    • message

      String message()
      if a status has an error or a warning, the message will be returned -otherwise it returns null
    • error

      Throwable error()
      if an error occurred, the exception will be returned, otherwise null