Class ValidationUtil.ParameterBean
java.lang.Object
jp.ecuacion.lib.core.util.ValidationUtil.ParameterBean
- Enclosing class:
ValidationUtil
Stores validation parameters.
Parameters are meant to show understandable error messages especially for non-display-value-validations (like validation errors for uploaded excel files).
addsItemNameToMessage you'll get message with itemName when true is specified.
Default value is false.
messagePrefix Used when you want to put an additional message
before the original message like "About the uploaded excel file, ".
It may be null, which means no messages added.
messagePostfix Used when you want to put an additional message
after the original message. It may be null, which means no messages added.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns addsItemNameToMessage.isMessageWithItemNames(boolean addsItemNameToMessage) Sets messagePrefix and returns this.messagePostfix(String messagePostfix) Sets messagePostfix and returns this.messagePostfix(PropertyFileUtil.Arg messagePostfix) Sets messagePostfix and returns this.messagePrefix(String messagePrefix) Sets messagePrefix and returns this.messagePrefix(PropertyFileUtil.Arg messagePrefix) Sets messagePrefix and returns this.
-
Method Details
-
isMessageWithItemNames
public boolean isMessageWithItemNames()Returns addsItemNameToMessage. -
isMessageWithItemNames
Sets messagePrefix and returns this. -
getMessagePrefix
-
messagePrefix
Sets messagePrefix and returns this. -
messagePrefix
Sets messagePrefix and returns this. -
getMessagePostfix
-
messagePostfix
Sets messagePostfix and returns this. -
messagePostfix
Sets messagePostfix and returns this.
-