Interface ValidationErrors
- All Known Implementing Classes:
DefaultValidationErrors
public interface ValidationErrors
Validation Errors to interface and manage
ValidationError lists.
This ValidationErrors interface ca also support multilevel field validation with pushField and popField
methods.-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ValidationError validationError) Operation to add theValidationErrorto the list of errors.Returns the list of validation errors.Operation to retrieve the string representation of the fields currently in the stack.voidpopField()Multilevel field Support method to pop fields from a Stack.voidMultilevel field Support method to push fields in a Stack.
-
Method Details
-
add
Operation to add theValidationErrorto the list of errors.- Parameters:
validationError- the validation error to be added to the list.
-
pushField
Multilevel field Support method to push fields in a Stack.- Parameters:
field- the field to be stacked when the logic enters a child entity.
-
popField
void popField()Multilevel field Support method to pop fields from a Stack. -
parseFieldStack
String parseFieldStack()Operation to retrieve the string representation of the fields currently in the stack.- Returns:
- the string representation of the values in the stack.
-
getValidationErrors
List<ValidationError> getValidationErrors()Returns the list of validation errors.- Returns:
- the list of
ValidationError's
-