public class ValidationMessage
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationMessage.Type
Type of validatin message
|
| Constructor and Description |
|---|
ValidationMessage()
Constructs a new validation message.
|
ValidationMessage(ValidationMessage.Type type,
java.lang.String field,
java.lang.String messageKey)
Constructs a new validation message with the given values.
|
ValidationMessage(ValidationMessage.Type type,
java.lang.String field,
java.lang.String messageKey,
java.lang.String[] messageParameters)
Constructs a new validation message with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getField()
Gets the name of the affected field.
|
java.lang.String |
getMessageKey()
Gets the language neutral key of the message.
|
java.lang.String[] |
getMessageParameters()
Gets additional message parameters (text) that are inserted into the localized message.
|
ValidationMessage.Type |
getType()
Gets the type of message
|
void |
setField(java.lang.String field)
Sets the name of the affected field.
|
void |
setMessageKey(java.lang.String messageKey)
Sets the language neutral key of the message.
|
void |
setMessageParameters(java.lang.String[] messageParameters)
Sets additional message parameters (text) that are inserted into the localized message.
|
void |
setType(ValidationMessage.Type type)
Sets the type of message
|
public ValidationMessage()
public ValidationMessage(ValidationMessage.Type type, java.lang.String field, java.lang.String messageKey)
type - the message typefield - the affect fieldmessageKey - the language-neutral key of the messagepublic ValidationMessage(ValidationMessage.Type type, java.lang.String field, java.lang.String messageKey, java.lang.String[] messageParameters)
type - the message typefield - the affect fieldmessageKey - the language-neutral key of the messagemessageParameters - variable text parts that will be inserted into the localized messagepublic ValidationMessage.Type getType()
public void setType(ValidationMessage.Type type)
type - message typepublic java.lang.String getField()
All field names are available as constants in Bill.
Examples are: "account", "creditor.street"
public void setField(java.lang.String field)
All field names are available as constants in Bill.
Examples are: "account", "creditor.street"
field - the field namepublic java.lang.String getMessageKey()
public void setMessageKey(java.lang.String messageKey)
messageKey - the message keypublic java.lang.String[] getMessageParameters()
public void setMessageParameters(java.lang.String[] messageParameters)
messageParameters - the additional message parameters