Package net.codecrete.qrbill.generator
Class ValidationMessage
- java.lang.Object
-
- net.codecrete.qrbill.generator.ValidationMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class ValidationMessage extends java.lang.Object implements java.io.SerializableQR bill validation message.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationMessage.TypeType of validatin message
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetField()Gets the name of the affected field.java.lang.StringgetMessageKey()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.TypegetType()Gets the type of messagevoidsetField(java.lang.String field)Sets the name of the affected field.voidsetMessageKey(java.lang.String messageKey)Sets the language neutral key of the message.voidsetMessageParameters(java.lang.String[] messageParameters)Sets additional message parameters (text) that are inserted into the localized message.voidsetType(ValidationMessage.Type type)Sets the type of message
-
-
-
Constructor Detail
-
ValidationMessage
public ValidationMessage()
Constructs a new validation message.
-
ValidationMessage
public ValidationMessage(ValidationMessage.Type type, java.lang.String field, java.lang.String messageKey)
Constructs a new validation message with the given values.- Parameters:
type- the message typefield- the affect fieldmessageKey- the language-neutral key of the message
-
ValidationMessage
public 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.- Parameters:
type- the message typefield- the affect fieldmessageKey- the language-neutral key of the messagemessageParameters- variable text parts that will be inserted into the localized message
-
-
Method Detail
-
getType
public ValidationMessage.Type getType()
Gets the type of message- Returns:
- the message type
-
setType
public void setType(ValidationMessage.Type type)
Sets the type of message- Parameters:
type- message type
-
getField
public java.lang.String getField()
Gets the name of the affected field.All field names are available as constants in
Bill. Examples are: "account", "creditor.street"- Returns:
- the field name
-
setField
public void setField(java.lang.String field)
Sets the name of the affected field.All field names are available as constants in
Bill. Examples are: "account", "creditor.street"- Parameters:
field- the field name
-
getMessageKey
public java.lang.String getMessageKey()
Gets the language neutral key of the message.- Returns:
- the message key
-
setMessageKey
public void setMessageKey(java.lang.String messageKey)
Sets the language neutral key of the message.- Parameters:
messageKey- the message key
-
getMessageParameters
public java.lang.String[] getMessageParameters()
Gets additional message parameters (text) that are inserted into the localized message.- Returns:
- the additional message parameters
-
setMessageParameters
public void setMessageParameters(java.lang.String[] messageParameters)
Sets additional message parameters (text) that are inserted into the localized message.- Parameters:
messageParameters- the additional message parameters
-
-