Class Validator<T>

java.lang.Object
org.jdesktop.beansbinding.Validator<T>
Type Parameters:
T - the type of value that this validator can validate

public abstract class Validator<T> extends Object
Validator is responsible for validating the value from the target of a Binding.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    An instance of Result is returned from a Validator's validate method to indicate an invalid value.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Validator<T>.Result
    validate(T value)
    Validates a value; returns null for a valid value, and a Result object describing the problem for an invalid value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Validator

      public Validator()
  • Method Details

    • validate

      public abstract Validator<T>.Result validate(T value)
      Validates a value; returns null for a valid value, and a Result object describing the problem for an invalid value.
      Parameters:
      value - the value to validate, may be null
      Returns:
      null for a valid value or a Result describing the problem for an invalid value