public interface MessageFactory
Modifier and Type | Method and Description |
---|---|
String |
getFieldErrorMessage(String recordName,
String fieldName,
String rule)
Returns a field level error message.
|
String |
getFieldLabel(String recordName,
String fieldName)
Returns the localized label for a field.
|
String |
getRecordErrorMessage(String recordName,
String rule)
Returns a record level error message.
|
String |
getRecordLabel(String recordName)
Returns the localized label for a record.
|
String getRecordLabel(String recordName)
recordName
- the name of the recordString getFieldLabel(String recordName, String fieldName)
recordName
- the name of the record the field belongs tofieldName
- the name of the fieldString getFieldErrorMessage(String recordName, String fieldName, String rule)
recordName
- the name of the recordfieldName
- the name of the fieldrule
- the name of the validation rule