Top Description Fields Constructors Methods
com.dlsc.formsfx.model.validators

pack-priv abstract Class RootValidator<T>

extends Object
implements Validator<T>
Class Inheritance
All Implemented Interfaces
com.dlsc.formsfx.model.validators.Validator
Known Direct Subclasses
com.dlsc.formsfx.model.validators.CustomValidator, com.dlsc.formsfx.model.validators.RegexValidator

The RootValidator contains helper methods for concrete validator implementations.
Authors
Sacha Schmid, Rinesch Murugathas

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
protected
RootValidator(String errorMessage)

Method Summary

Modifier and TypeMethod and Description
protected ValidationResult

Returns:

Returns a new ValidationResult containing result and message.
createResult
(boolean
The result of the validation.
result
)

Creates a ValidationResult based on the validation result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorMessageback to summary
private String errorMessage

Constructor Detail

RootValidatorback to summary
protected RootValidator(String errorMessage)

Method Detail

createResultback to summary
protected ValidationResult createResult(boolean result)

Creates a ValidationResult based on the validation result.

Parameters
result:boolean

The result of the validation.

Returns:ValidationResult

Returns a new ValidationResult containing result and message.