Class DefaultValidationErrors
java.lang.Object
de.hybris.platform.cmsfacades.common.validator.impl.DefaultValidationErrors
- All Implemented Interfaces:
ValidationErrors,Serializable
Default implementation of
ValidationErrors.
It manages a list of Validation Errors and supports multilevel field structure by storing field names in a stack.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
SEPARATOR
- See Also:
-
-
Constructor Details
-
DefaultValidationErrors
public DefaultValidationErrors()
-
-
Method Details
-
add
Description copied from interface:ValidationErrorsOperation to add theValidationErrorto the list of errors.- Specified by:
addin interfaceValidationErrors- Parameters:
validationError- the validation error to be added to the list.
-
pushField
Description copied from interface:ValidationErrorsMultilevel field Support method to push fields in a Stack.- Specified by:
pushFieldin interfaceValidationErrors- Parameters:
field- the field to be stacked when the logic enters a child entity.
-
popField
public void popField()Description copied from interface:ValidationErrorsMultilevel field Support method to pop fields from a Stack.- Specified by:
popFieldin interfaceValidationErrors
-
getValidationErrors
Description copied from interface:ValidationErrorsReturns the list of validation errors.- Specified by:
getValidationErrorsin interfaceValidationErrors- Returns:
- the list of
ValidationError's
-
parseFieldStack
Description copied from interface:ValidationErrorsOperation to retrieve the string representation of the fields currently in the stack.- Specified by:
parseFieldStackin interfaceValidationErrors- Returns:
- the string representation of the values in the stack.
-
getFieldStack
-