public class BasicValidator<T> extends Object implements Validator<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
notNull |
protected String |
targetKey |
| Constructor and Description |
|---|
BasicValidator(String targetKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
setNotNull(boolean notNull) |
boolean |
validate(T target,
ValidationResult result) |
protected String targetKey
protected boolean notNull
public BasicValidator(String targetKey)
public void setNotNull(boolean notNull)
public boolean validate(T target, ValidationResult result)
Copyright © 2018 CrafterCMS. All rights reserved.