Class ValidationResultVisitor
java.lang.Object
ch.tocco.nice2.rest.entity.impl.error.validation.ValidationResultVisitor
- All Implemented Interfaces:
CompleteEntityValidationResultVisitor
,ValidationResultVisitor
public class ValidationResultVisitor
extends Object
implements CompleteEntityValidationResultVisitor
Converts a
CommitValidationResult
into a map with the entities
as keys and the errors of the entity as values.-
Constructor Summary
ConstructorDescriptionValidationResultVisitor
(TextResources textResources, ValidationDataService validationDataService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(CompleteEntityValidationResult result) void
visit
(EntityValidationResult result) void
visit
(FieldValidationResult result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.validate.api.result.ValidationResultVisitor
visit
-
Constructor Details
-
ValidationResultVisitor
public ValidationResultVisitor(TextResources textResources, ValidationDataService validationDataService)
-
-
Method Details
-
getEntityErrors
-
visit
- Specified by:
visit
in interfaceCompleteEntityValidationResultVisitor
-
visit
- Specified by:
visit
in interfaceValidationResultVisitor
-
visit
- Specified by:
visit
in interfaceValidationResultVisitor
-