Class ValidationMessage

java.lang.Object
net.codecrete.qrbill.generator.ValidationMessage
All Implemented Interfaces:
Serializable

public class ValidationMessage extends Object implements Serializable
QR bill validation message.
See Also:
  • Constructor Details

    • ValidationMessage

      public ValidationMessage()
      Constructs a new validation message.
    • ValidationMessage

      public ValidationMessage(ValidationMessage.Type type, String field, String messageKey)
      Constructs a new validation message with the given values.
      Parameters:
      type - the message type
      field - the affect field
      messageKey - the language-neutral key of the message
    • ValidationMessage

      public ValidationMessage(ValidationMessage.Type type, String field, String messageKey, String[] messageParameters)
      Constructs a new validation message with the given values.
      Parameters:
      type - the message type
      field - the affect field
      messageKey - the language-neutral key of the message
      messageParameters - variable text parts that will be inserted into the localized message
  • Method Details

    • 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 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(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 String getMessageKey()
      Gets the language neutral key of the message.
      Returns:
      the message key
    • setMessageKey

      public void setMessageKey(String messageKey)
      Sets the language neutral key of the message.
      Parameters:
      messageKey - the message key
    • getMessageParameters

      public String[] getMessageParameters()
      Gets additional message parameters (text) that are inserted into the localized message.
      Returns:
      the additional message parameters
    • setMessageParameters

      public void setMessageParameters(String[] messageParameters)
      Sets additional message parameters (text) that are inserted into the localized message.
      Parameters:
      messageParameters - the additional message parameters