|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.binding.form.support.DefaultMessageCodeStrategy
public class DefaultMessageCodeStrategy
Default implementation for MessageCodeStrategy. It creates message codes as follows:
{contextId}.{field}.{suffix}
{field}.{suffix} - without a contextId
{field} - without a contextId and no suffix
If field contains a name which is separated by '.' like 'fieldcontext.field':
{contextId}.fieldcontext.field.{suffix}
{contextId}.field.{suffix}
fieldcontext.field.{suffix} - without a contextId
field.{suffix} - without a contextId
fieldcontext.field - without a contextId and no suffix
field - without a contextId and no suffix
| Constructor Summary | |
|---|---|
DefaultMessageCodeStrategy()
|
|
| Method Summary | |
|---|---|
String[] |
getMessageCodes(String contextId,
String field,
String[] suffixes)
Creates message codes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessageCodeStrategy()
| Method Detail |
|---|
public String[] getMessageCodes(String contextId,
String field,
String[] suffixes)
MessageCodeStrategy
getMessageCodes in interface MessageCodeStrategycontextId - optional contextId of the field.field - the field. The field namesuffixes - optional array of suffixes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||