public class ValidationBuilderArrayDefault extends ValidationBuilderCoreBaseDefault<ValidationBuilderArray> implements ValidationBuilderArray
| Constructor and Description |
|---|
ValidationBuilderArrayDefault(ValidationSet validationSet,
SimpleValidator validator,
String validationKey,
JsonArray array,
boolean elementWasNotAnArray,
ValidationFactory validationFactory,
SpincastDictionary spincastDictionary,
JsonManager jsonManager) |
ValidationBuilderArrayDefault(ValidationSet validationSet,
SimpleValidator validator,
String validationKey,
JsonArray array,
ValidationFactory validationFactory,
SpincastDictionary spincastDictionary,
JsonManager jsonManager) |
| Modifier and Type | Method and Description |
|---|---|
ValidationBuilderArray |
arrayItselfAddFailMessage()
If the validation of at least one element failed, add a Fail Validation Message
on the array itself.
|
ValidationBuilderArray |
arrayItselfAddFailMessage(String customSuccessMessageText)
If the validation of at least one element failed, add a Fail Validation Message
on the array itself.
|
ValidationBuilderArray |
arrayItselfAddFailMessage(String validationKey,
String customFailMessageText)
If the validation of at least one element failed, add a Fail Validation Message
on the array itself.
|
ValidationBuilderArray |
arrayItselfAddSuccessMessage()
If all its elements are successfully validated, add a Success Validation Message
on the array itself.
|
ValidationBuilderArray |
arrayItselfAddSuccessMessage(String customSuccessMessageText)
If all its elements are successfully validated, add a Success Validation Message
on the array itself.
|
ValidationBuilderArray |
arrayItselfAddSuccessMessage(String validationKey,
String customSuccessMessageText)
If all its elements are successfully validated, add a Success Validation Message
on the array itself.
|
protected String |
getArrayItselfAddFailMessageValidationKey() |
protected String |
getArrayItselfAddSuccessMessageValidationKey() |
protected String |
getArrayItselfCustomErrorMessageText() |
protected String |
getArrayItselfCustomFailMessageText() |
protected String |
getArrayItselfCustomSuccessMessageText() |
protected String |
getArrayItselfDefaultErrorMessageText() |
protected String |
getArrayItselfDefaultSuccessMessageText() |
protected String |
getArrayItselfDefaultWarningMessageText() |
protected String |
getNotArrayDefaultErrorMessageText() |
protected boolean |
isArrayItselfAddFailMessage() |
protected boolean |
isArrayItselfAddSuccessMessage() |
protected boolean |
isElementWasNotAnArray() |
ValidationSet |
validate(ValidationLevel onlyIfNoMessageAtThisLevelOrHigherYet)
Performs the validation, saves the result into the
validation set and returns it.
|
addMessageOnSuccess, addMessageOnSuccess, code, failMessageText, getCode, getElementToValidate, getErrorMessageText, getFailLevel, getJsonManager, getSimpleValidator, getSpincastDictionary, getSuccessMessageText, getValidationFactory, getValidationKey, getValidationSet, isAddMessageOnSuccess, isTreatErrorAsWarning, treatErrorAsWarning, validate, validate, validateElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMessageOnSuccess, addMessageOnSuccess, code, failMessageText, treatErrorAsWarning, validate, validatepublic ValidationBuilderArrayDefault(ValidationSet validationSet, SimpleValidator validator, String validationKey, @Nullable JsonArray array, ValidationFactory validationFactory, SpincastDictionary spincastDictionary, JsonManager jsonManager)
public ValidationBuilderArrayDefault(ValidationSet validationSet, SimpleValidator validator, String validationKey, @Nullable JsonArray array, boolean elementWasNotAnArray, ValidationFactory validationFactory, SpincastDictionary spincastDictionary, JsonManager jsonManager)
protected boolean isElementWasNotAnArray()
protected String getArrayItselfCustomErrorMessageText()
protected String getArrayItselfAddSuccessMessageValidationKey()
protected String getArrayItselfAddFailMessageValidationKey()
public ValidationBuilderArray arrayItselfAddSuccessMessage()
ValidationBuilderArray
The validation key is going to be the JsonPath to the array.
arrayItselfAddSuccessMessage in interface ValidationBuilderArraypublic ValidationBuilderArray arrayItselfAddSuccessMessage(String customSuccessMessageText)
ValidationBuilderArrayarrayItselfAddSuccessMessage in interface ValidationBuilderArraycustomSuccessMessageText - the Success message text to use for the
array itself. If null, the default message will be used.public ValidationBuilderArray arrayItselfAddSuccessMessage(String validationKey, String customSuccessMessageText)
ValidationBuilderArrayarrayItselfAddSuccessMessage in interface ValidationBuilderArrayvalidationKey - The validation key to which the Validation Message
will be added.customSuccessMessageText - the Success message text to use for the
array itself. If null, the default message will be used.public ValidationBuilderArray arrayItselfAddFailMessage()
ValidationBuilderArrayJsonPath to the array.arrayItselfAddFailMessage in interface ValidationBuilderArraypublic ValidationBuilderArray arrayItselfAddFailMessage(String customSuccessMessageText)
ValidationBuilderArrayarrayItselfAddFailMessage in interface ValidationBuilderArraycustomSuccessMessageText - the Fail message text to use for the
array itself. If null, the default message will be used.public ValidationBuilderArray arrayItselfAddFailMessage(String validationKey, String customFailMessageText)
ValidationBuilderArrayarrayItselfAddFailMessage in interface ValidationBuilderArrayvalidationKey - The validation key to which the Validation Message
will be added.customFailMessageText - the Fail message text to use for the
array itself.protected boolean isArrayItselfAddSuccessMessage()
protected boolean isArrayItselfAddFailMessage()
protected String getArrayItselfCustomSuccessMessageText()
protected String getArrayItselfCustomFailMessageText()
protected String getArrayItselfDefaultSuccessMessageText()
protected String getArrayItselfDefaultWarningMessageText()
protected String getArrayItselfDefaultErrorMessageText()
protected String getNotArrayDefaultErrorMessageText()
public ValidationSet validate(ValidationLevel onlyIfNoMessageAtThisLevelOrHigherYet)
ValidationBuilderCoreBasevalidate in interface ValidationBuilderCoreBase<ValidationBuilderArray>validate in class ValidationBuilderCoreBaseDefault<ValidationBuilderArray>Copyright © 2017. All rights reserved.