public interface ValidlyNote
The idea of the owner-message structure is that the owner can have multiple messages associated to it. This allows grouping the messages (validation errors) per owner (value field) when notification object is shared between several validations (e.g. validating a domain object).
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(java.lang.String owner,
java.lang.String message)
Adds the message with an owner into this notification.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getMessages() |
void addMessage(java.lang.String owner,
java.lang.String message)
owner - owner of the messagemessage - messagejava.util.Map<java.lang.String,java.util.List<java.lang.String>> getMessages()