Interface Validatable

All Known Implementing Classes:
Email, HttpAccessConstraints, NetworkAccessConstraints, SwitchParser

public interface Validatable
An object that is Validatable can create a Validator for a given kind of ValidationType.
Author:
jonathanl (shibo)
See Also:
Validator, ValidationType
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Determines if this object is valid by using the default validator
    default boolean
    isValid​(Listener listener)
    Determines if this object is valid by using the default validator
    default Validator
     
     
  • Method Details

    • isValid

      default boolean isValid()
      Determines if this object is valid by using the default validator
      See Also:
      Validator.validate()
    • isValid

      default boolean isValid(Listener listener)
      Determines if this object is valid by using the default validator
      See Also:
      Validator.validate(Listener)
    • validator

      default Validator validator()
      Returns:
      A validator for full validation, if any. Although it cannot be final, this method should not be overridden. Instead, override validator(ValidationType)
    • validator

      Validator validator(ValidationType type)
      Parameters:
      type - The type of validation to perform
      Returns:
      A Validator instance