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 Detail

      • 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