Interface ValidationResult

All Superinterfaces:
Serializable
All Known Implementing Classes:
InvalidResult, ValidResult

public interface ValidationResult extends Serializable
For higher performance when validating objects fails, a validator result is returned from the core validation routines instead of immediately throwing ValidationException. Methods that automatically perform validation, including constructors, will throw ValidationException when needed.
Author:
AO Industries, Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets the validation result.
    Gets a description of why invalid in the current thread's locale.
  • Method Details

    • isValid

      boolean isValid()
      Gets the validation result.
    • toString

      String toString()
      Gets a description of why invalid in the current thread's locale. Should be simply "Valid" (or translation) for valid.
      Overrides:
      toString in class Object