public class ValidationRenderer extends Object implements Renderer<ValidationAction>
Modifier and Type | Field and Description |
---|---|
private List<Throwable> |
errors |
private boolean |
isValid |
private List<ValidatingFileSetMember> |
members |
private String |
message |
Constructor and Description |
---|
ValidationRenderer(List<ValidatingFileSetMember> members,
List<Throwable> errors)
Create a new renderer instance.
|
Modifier and Type | Method and Description |
---|---|
void |
render(ValidationAction action)
Render the action in the client application.
|
private void |
validate(ValidationAction action) |
private final List<ValidatingFileSetMember> members
private boolean isValid
private String message
public ValidationRenderer(List<ValidatingFileSetMember> members, List<Throwable> errors)
members
- A list with the members of the file seterrors
- A list for collecting validation errorspublic void render(ValidationAction action)
Renderer
render
in interface Renderer<ValidationAction>
action
- The action to renderprivate void validate(ValidationAction action)