java.lang.Object
com.inductiveautomation.ignition.designer.gui.validation.ValidationEngine<T>
Type Parameters:
T - the type of the value to validate

public class ValidationEngine<T> extends Object
Engine for validating values of a given type. Validation is asynchronous, provide a callback Consumer to the constructor to receive validation results, and progress of validation.

Validation terminates on the first invalid result.

This class is not thread-safe and should be used from the UI thread.

  • Constructor Details

  • Method Details

    • validate

      public void validate(T value)
      Validate the given value asynchronously. The result will be sent to the consumer provided in the constructor.
      Parameters:
      value - the value to validate
    • validating

      public void validating()
      Indicate that validation is in progress. This will send an "unvalidated" result to the consumer.