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) |
protected String targetKey
protected boolean notNull
public BasicValidator(String targetKey)
public void setNotNull(boolean notNull)
public boolean validate(T target, ValidationResult result)
Copyright © 2017 CrafterCMS. All Rights Reserved.