org.gwtbootstrap3.client.ui.form.validator
Interface Validator<T>

Type Parameters:
T - the type.
All Known Implementing Classes:
BlankValidator

public interface Validator<T>

An input validator.

Author:
Steven Jardine

Nested Class Summary
static class Validator.Priority
          Represents the priority of a validator.
 
Method Summary
 int getPriority()
          Priority value for this validator.
 List<EditorError> validate(Editor<T> editor, T value)
          Validate the field.
 

Method Detail

getPriority

int getPriority()
Priority value for this validator. Lower the number, higher the priority.

Returns:
the priority.

validate

List<EditorError> validate(Editor<T> editor,
                           T value)
Validate the field.

Parameters:
editor - the Editor.
value - the value
Returns:
the list


Copyright © 2015. All rights reserved.