public abstract class ValidationBuilderCoreBaseDefault<T extends ValidationBuilderCoreBase<?>> extends Object
| Constructor and Description |
|---|
ValidationBuilderCoreBaseDefault(ValidationSet validationSet,
SimpleValidator validator,
String validationKey,
Object elementToValidate,
ValidationFactory validationFactory,
SpincastDictionary spincastDictionary,
JsonManager jsonManager) |
public ValidationBuilderCoreBaseDefault(ValidationSet validationSet, SimpleValidator validator, String validationKey, @Nullable Object elementToValidate, ValidationFactory validationFactory, SpincastDictionary spincastDictionary, JsonManager jsonManager)
protected ValidationSet getValidationSet()
protected SimpleValidator getSimpleValidator()
protected String getValidationKey()
protected Object getElementToValidate()
protected ValidationFactory getValidationFactory()
protected SpincastDictionary getSpincastDictionary()
protected JsonManager getJsonManager()
protected String getCode()
public T addMessageOnSuccess()
protected boolean isAddMessageOnSuccess()
protected String getSuccessMessageText()
public T treatErrorAsWarning()
protected ValidationLevel getFailLevel()
protected boolean isTreatErrorAsWarning()
protected String getErrorMessageText()
public ValidationSet validate()
public ValidationSet validate(boolean onlyIfNoMessageYet)
public ValidationSet validate(ValidationLevel onlyIfNoMessageAtThisLevelOrHigherYet)
protected ValidationSet validateElement(String validationKey, Object elementToValidate, ValidationLevel onlyIfNoMessageAtThisLevelOrHigherYet)
Copyright © 2017. All rights reserved.