Interface ValidationErrors
-
- All Known Implementing Classes:
DefaultValidationErrors
public interface ValidationErrorsValidation Errors to interface and manageValidationErrorlists. This ValidationErrors interface ca also support multilevel field validation withpushFieldandpopFieldmethods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(ValidationError validationError)Operation to add theValidationErrorto the list of errors.java.util.List<ValidationError>getValidationErrors()Returns the list of validation errors.java.lang.StringparseFieldStack()Operation to retrieve the string representation of the fields currently in the stack.voidpopField()Multilevel field Support method to pop fields from a Stack.voidpushField(java.lang.String field)Multilevel field Support method to push fields in a Stack.
-
-
-
Method Detail
-
add
void add(ValidationError validationError)
Operation to add theValidationErrorto the list of errors.- Parameters:
validationError- the validation error to be added to the list.
-
pushField
void pushField(java.lang.String field)
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
java.lang.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
java.util.List<ValidationError> getValidationErrors()
Returns the list of validation errors.- Returns:
- the list of
ValidationError's
-
-