| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a custom message or nullthe field location that has to be associated with a message fieldLocation)Retrieves a custom message, which is associated with the giving field location. |
| public boolean | Returns: is field location contain a custom messagethe field location which association need to check fieldLocation)Checks, whether an any custom message is associated with the giving field location. |
| public Stream | Returns: sequence of field-message pairsReturns a sequence of associated field-message pairs. |
| public void | registerMessage(String
the field location where to apply the giving error message fieldLocation, String the error message message)Pairs the giving error |
| FieldMessages | back to summary |
|---|---|
| public FieldMessages() | |
| getMessageForField | back to summary |
|---|---|
| public String getMessageForField(String fieldLocation) Retrieves a custom message, which is associated with the giving field location. If this location does not associate with any custom message - this method returns null. | |
| hasMessageForField | back to summary |
|---|---|
| public boolean hasMessageForField(String fieldLocation) Checks, whether an any custom message is associated with the giving field location.
| |
| messageByFields | back to summary |
|---|---|
| public Stream Returns a sequence of associated field-message pairs. | |
| registerMessage | back to summary |
|---|---|
| public void registerMessage(String fieldLocation, String message) Pairs the giving error | |