Class ValidationResult


  • public class ValidationResult
    extends Object
    Indicates the result of a validation operation.
    Author:
    Jesse Sightler
    • Field Detail

      • SUCCESS

        public static final ValidationResult SUCCESS
        Indicates that the validation was successful (with no attached message).
    • Constructor Detail

      • ValidationResult

        public ValidationResult​(ValidationResult.Level level,
                                String message,
                                boolean promptDefault)
        Indicates the success of failure of a validation, as well as a short informative message for the user and what value to assume as a default for the prompt message. This only applies to ValidationResult.Level.PROMPT_TO_CONTINUE.
      • ValidationResult

        public ValidationResult​(ValidationResult.Level level,
                                String message)
        Indicates the success of failure of a validation, as well as a short informative message for the user.
      • ValidationResult

        public ValidationResult()
        DO NOT USE - This is here so that Furnace can create proxies.
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Indicates whether this is considered a valid response.
      • getMessage

        public String getMessage()
        Returns a readable message to display to the user.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object