public abstract class Validator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Validator.ValidationLevel |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
INVALID |
static boolean |
VALID |
protected ValidationFailures |
validationFailures |
| Constructor and Description |
|---|
Validator() |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
abstract boolean |
validate() |
protected boolean |
validate(boolean performVaidation)
This validate method gives us flexibility to bypass a validation from set of
validation that we need to perform.
|
public static final boolean VALID
public static final boolean INVALID
protected ValidationFailures validationFailures
public abstract boolean validate()
protected boolean validate(boolean performVaidation)
performVaidation - - When performVaidation is false we will bypass validationCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.