org.sourceid.saml20.adapter.gui.validation
Interface FieldValidator

All Known Implementing Classes:
DoubleValidator, FloatValidator, HttpURLValidator, IntegerValidator, LongValidator, RequiredFieldValidator, URLValidator

public interface FieldValidator

An interface that allows for custom field level validation.

A FieldDescriptor can have 0..n FieldValidators that will be invoked in order until ValidationException is thrown or all FieldValidators have been executed.

Author:
Brian Campbell

Method Summary
 void validate(Field field)
          Implementations of this method can perform any necessary validation on the Field.
 

Method Detail

validate

void validate(Field field)
              throws ValidationException
Implementations of this method can perform any necessary validation on the Field. If the field is deemed invalid, a ValidationException should be thrown with a descriptive error message.

Parameters:
field - the field (name and value) to validate.
Throws:
ValidationException - if the field is invalid.


Copyright 2007 Ping Identity Corp. All rights reserved.