public class FieldMessages extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,T> |
fieldHolder |
| Constructor and Description |
|---|
FieldMessages() |
| Modifier and Type | Method and Description |
|---|---|
Stream<Map.Entry<String,T>> |
entryByField()
Returns a sequence of all field-entry pairs which the current holder supplies.
|
boolean |
equals(Object o) |
T |
get(String fieldLocation)
Retrieves a specific entity which is associated with the giving
filedLocation from the field holder, if it
presents. |
String |
getMessageForField(String fieldLocation)
Retrieves a custom message, which is associated with the giving field location.
|
boolean |
hasEntity(String fieldLocation)
Checks, whether an any entity associated with the giving field location.
|
int |
hashCode() |
boolean |
hasMessageForField(String fieldLocation)
Checks, whether an any custom message is associated with the giving field location.
|
boolean |
isEmpty() |
Stream<Map.Entry<String,String>> |
messageByFields()
Returns a sequence of associated field-message pairs.
|
void |
put(String fieldLocation,
T entity)
Pairs the giving
entity with the fieldLocation. |
void |
registerMessage(String fieldLocation,
String message)
Pairs the giving error
message with the fieldLocation. |
String |
toString() |
public void registerMessage(String fieldLocation, String message)
message with the fieldLocation.fieldLocation - the field location where to apply the giving error messagemessage - the error messagepublic boolean hasMessageForField(String fieldLocation)
fieldLocation - the field location which association need to checkpublic String getMessageForField(String fieldLocation)
fieldLocation - the field location that has to be associated with a messagepublic Stream<Map.Entry<String,String>> messageByFields()
public void put(String fieldLocation, T entity)
entity with the fieldLocation.fieldLocation - the field location where to apply the giving entityentity - the entity to pairpublic T get(String fieldLocation)
filedLocation from the field holder, if it
presents. Otherwise, this method returns null.fieldLocation - the field location which has to be associated with an entitypublic boolean hasEntity(String fieldLocation)
fieldLocation - the field location which association need to checkpublic boolean isEmpty()
true is there are registered entities, false otherwisepublic Stream<Map.Entry<String,T>> entryByField()
Copyright © 2025. All rights reserved.