Package com.esprit.utils.validation
Class ValidationUtils.ValidationBuilder
java.lang.Object
com.esprit.utils.validation.ValidationUtils.ValidationBuilder
- Enclosing class:
- ValidationUtils
Validation builder for fluent validation setup
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValidationBuilder
(javafx.scene.control.TextField textField) Performs ValidationBuilder operation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
Performs apply operation.Performs custom operation.email()
Performs email operation.length
(int min, int max) Performs length operation.Performs message operation.name()
Performs name operation.password()
Performs password operation.phone()
Performs phone operation.required()
Performs required operation.
-
Field Details
-
textField
private final javafx.scene.control.TextField textField -
validator
-
errorMessage
-
-
Constructor Details
-
ValidationBuilder
public ValidationBuilder(javafx.scene.control.TextField textField) Performs ValidationBuilder operation.
-
-
Method Details
-
email
Performs email operation.- Returns:
- the result of the operation
-
phone
Performs phone operation.- Returns:
- the result of the operation
-
name
Performs name operation.- Returns:
- the result of the operation
-
password
Performs password operation.- Returns:
- the result of the operation
-
required
Performs required operation.- Returns:
- the result of the operation
-
length
Performs length operation.- Returns:
- the result of the operation
-
custom
public ValidationUtils.ValidationBuilder custom(Predicate<String> customValidator, String customMessage) Performs custom operation.- Returns:
- the result of the operation
-
message
Performs message operation.- Returns:
- the result of the operation
-
apply
public void apply()Performs apply operation.
-