|
@@ -38,121 +38,128 @@ public class FessMessages extends FessLabels {
|
|
|
/** The key of the message: </li> */
|
|
|
public static final String ERRORS_SUFFIX = "{errors.suffix}";
|
|
|
|
|
|
- /** The key of the message: must be false */
|
|
|
+ /** The key of the message: {item} must be false. */
|
|
|
public static final String CONSTRAINTS_AssertFalse_MESSAGE = "{constraints.AssertFalse.message}";
|
|
|
|
|
|
- /** The key of the message: must be true */
|
|
|
+ /** The key of the message: {item} must be true. */
|
|
|
public static final String CONSTRAINTS_AssertTrue_MESSAGE = "{constraints.AssertTrue.message}";
|
|
|
|
|
|
- /** The key of the message: must be less than ${inclusive == true ? 'or equal to ' : ''}{value} */
|
|
|
+ /** The key of the message: {item} must be less than ${inclusive == true ? 'or equal to ' : ''}{value}. */
|
|
|
public static final String CONSTRAINTS_DecimalMax_MESSAGE = "{constraints.DecimalMax.message}";
|
|
|
|
|
|
- /** The key of the message: must be greater than ${inclusive == true ? 'or equal to ' : ''}{value} */
|
|
|
+ /** The key of the message: {item} must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}. */
|
|
|
public static final String CONSTRAINTS_DecimalMin_MESSAGE = "{constraints.DecimalMin.message}";
|
|
|
|
|
|
- /** The key of the message: numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected) */
|
|
|
+ /** The key of the message: {item} is numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected). */
|
|
|
public static final String CONSTRAINTS_Digits_MESSAGE = "{constraints.Digits.message}";
|
|
|
|
|
|
- /** The key of the message: must be in the future */
|
|
|
+ /** The key of the message: {item} must be in the future. */
|
|
|
public static final String CONSTRAINTS_Future_MESSAGE = "{constraints.Future.message}";
|
|
|
|
|
|
- /** The key of the message: must be less than or equal to {value} */
|
|
|
+ /** The key of the message: {item} must be less than or equal to {value}. */
|
|
|
public static final String CONSTRAINTS_Max_MESSAGE = "{constraints.Max.message}";
|
|
|
|
|
|
- /** The key of the message: must be greater than or equal to {value} */
|
|
|
+ /** The key of the message: {item} must be greater than or equal to {value}. */
|
|
|
public static final String CONSTRAINTS_Min_MESSAGE = "{constraints.Min.message}";
|
|
|
|
|
|
- /** The key of the message: may not be null */
|
|
|
+ /** The key of the message: {item} may not be null. */
|
|
|
public static final String CONSTRAINTS_NotNull_MESSAGE = "{constraints.NotNull.message}";
|
|
|
|
|
|
- /** The key of the message: must be null */
|
|
|
+ /** The key of the message: {item} must be null. */
|
|
|
public static final String CONSTRAINTS_Null_MESSAGE = "{constraints.Null.message}";
|
|
|
|
|
|
- /** The key of the message: must be in the past */
|
|
|
+ /** The key of the message: {item} must be in the past. */
|
|
|
public static final String CONSTRAINTS_Past_MESSAGE = "{constraints.Past.message}";
|
|
|
|
|
|
- /** The key of the message: must match "{regexp}" */
|
|
|
+ /** The key of the message: {item} must match "{regexp}". */
|
|
|
public static final String CONSTRAINTS_Pattern_MESSAGE = "{constraints.Pattern.message}";
|
|
|
|
|
|
- /** The key of the message: size must be between {min} and {max} */
|
|
|
+ /** The key of the message: Size of {item} must be between {min} and {max}. */
|
|
|
public static final String CONSTRAINTS_Size_MESSAGE = "{constraints.Size.message}";
|
|
|
|
|
|
- /** The key of the message: invalid credit card number */
|
|
|
+ /** The key of the message: {item} is invalid credit card number. */
|
|
|
public static final String CONSTRAINTS_CreditCardNumber_MESSAGE = "{constraints.CreditCardNumber.message}";
|
|
|
|
|
|
- /** The key of the message: invalid {type} barcode */
|
|
|
+ /** The key of the message: {item} is invalid {type} barcode. */
|
|
|
public static final String CONSTRAINTS_EAN_MESSAGE = "{constraints.EAN.message}";
|
|
|
|
|
|
- /** The key of the message: not a well-formed email address */
|
|
|
+ /** The key of the message: {item} is not a well-formed email address. */
|
|
|
public static final String CONSTRAINTS_Email_MESSAGE = "{constraints.Email.message}";
|
|
|
|
|
|
- /** The key of the message: length must be between {min} and {max} */
|
|
|
+ /** The key of the message: Length of {item} must be between {min} and {max}. */
|
|
|
public static final String CONSTRAINTS_Length_MESSAGE = "{constraints.Length.message}";
|
|
|
|
|
|
- /** The key of the message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed */
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed. */
|
|
|
public static final String CONSTRAINTS_LuhnCheck_MESSAGE = "{constraints.LuhnCheck.message}";
|
|
|
|
|
|
- /** The key of the message: The check digit for ${value} is invalid, Modulo 10 checksum failed */
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Modulo 10 checksum failed. */
|
|
|
public static final String CONSTRAINTS_Mod10Check_MESSAGE = "{constraints.Mod10Check.message}";
|
|
|
|
|
|
- /** The key of the message: The check digit for ${value} is invalid, Modulo 11 checksum failed */
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, Modulo 11 checksum failed. */
|
|
|
public static final String CONSTRAINTS_Mod11Check_MESSAGE = "{constraints.Mod11Check.message}";
|
|
|
|
|
|
- /** The key of the message: The check digit for ${value} is invalid, ${modType} checksum failed */
|
|
|
+ /** The key of the message: The check digit for ${value} is invalid, ${modType} checksum failed. */
|
|
|
public static final String CONSTRAINTS_ModCheck_MESSAGE = "{constraints.ModCheck.message}";
|
|
|
|
|
|
- /** The key of the message: may not be empty */
|
|
|
+ /** The key of the message: {item} may not be empty. */
|
|
|
public static final String CONSTRAINTS_NotBlank_MESSAGE = "{constraints.NotBlank.message}";
|
|
|
|
|
|
- /** The key of the message: may not be empty */
|
|
|
+ /** The key of the message: {item} may not be empty. */
|
|
|
public static final String CONSTRAINTS_NotEmpty_MESSAGE = "{constraints.NotEmpty.message}";
|
|
|
|
|
|
- /** The key of the message: script expression "{script}" didn't evaluate to true */
|
|
|
+ /** The key of the message: script expression "{script}" didn't evaluate to true. */
|
|
|
public static final String CONSTRAINTS_ParametersScriptAssert_MESSAGE = "{constraints.ParametersScriptAssert.message}";
|
|
|
|
|
|
- /** The key of the message: must be between {min} and {max} */
|
|
|
+ /** The key of the message: {item} must be between {min} and {max}. */
|
|
|
public static final String CONSTRAINTS_Range_MESSAGE = "{constraints.Range.message}";
|
|
|
|
|
|
- /** The key of the message: may have unsafe html content */
|
|
|
+ /** The key of the message: {item} may have unsafe html content. */
|
|
|
public static final String CONSTRAINTS_SafeHtml_MESSAGE = "{constraints.SafeHtml.message}";
|
|
|
|
|
|
- /** The key of the message: script expression "{script}" didn't evaluate to true */
|
|
|
+ /** The key of the message: script expression "{script}" didn't evaluate to true. */
|
|
|
public static final String CONSTRAINTS_ScriptAssert_MESSAGE = "{constraints.ScriptAssert.message}";
|
|
|
|
|
|
- /** The key of the message: must be a valid URL */
|
|
|
+ /** The key of the message: {item} must be a valid URL. */
|
|
|
public static final String CONSTRAINTS_URL_MESSAGE = "{constraints.URL.message}";
|
|
|
|
|
|
- /** The key of the message: is required */
|
|
|
+ /** The key of the message: {item} is required. */
|
|
|
public static final String CONSTRAINTS_Required_MESSAGE = "{constraints.Required.message}";
|
|
|
|
|
|
- /** The key of the message: should be integer */
|
|
|
- public static final String CONSTRAINTS_IntegerType_MESSAGE = "{constraints.IntegerType.message}";
|
|
|
+ /** The key of the message: {item} should be numeric. */
|
|
|
+ public static final String CONSTRAINTS_TypeInteger_MESSAGE = "{constraints.TypeInteger.message}";
|
|
|
|
|
|
- /** The key of the message: should be long */
|
|
|
- public static final String CONSTRAINTS_LongType_MESSAGE = "{constraints.LongType.message}";
|
|
|
+ /** The key of the message: {item} should be numeric. */
|
|
|
+ public static final String CONSTRAINTS_TypeLong_MESSAGE = "{constraints.TypeLong.message}";
|
|
|
|
|
|
- /** The key of the message: should be float */
|
|
|
- public static final String CONSTRAINTS_FloatType_MESSAGE = "{constraints.FloatType.message}";
|
|
|
+ /** The key of the message: {item} should be numeric. */
|
|
|
+ public static final String CONSTRAINTS_TypeFloat_MESSAGE = "{constraints.TypeFloat.message}";
|
|
|
|
|
|
- /** The key of the message: should be double */
|
|
|
- public static final String CONSTRAINTS_DoubleType_MESSAGE = "{constraints.DoubleType.message}";
|
|
|
+ /** The key of the message: {item} should be numeric. */
|
|
|
+ public static final String CONSTRAINTS_TypeDouble_MESSAGE = "{constraints.TypeDouble.message}";
|
|
|
|
|
|
- /** The key of the message: could not login */
|
|
|
+ /** The key of the message: {item} cannot convert as {propertyType}. */
|
|
|
+ public static final String CONSTRAINTS_TypeAny_MESSAGE = "{constraints.TypeAny.message}";
|
|
|
+
|
|
|
+ /** The key of the message: {item} cannot convert as {propertyType}. */
|
|
|
+ public static final String ORG_LASTAFLUTE_VALIDATOR_CONSTRAINTS_TypeAny_MESSAGE =
|
|
|
+ "{org.lastaflute.validator.constraints.TypeAny.message}";
|
|
|
+
|
|
|
+ /** The key of the message: could not login. */
|
|
|
public static final String ERRORS_LOGIN_FAILURE = "{errors.login.failure}";
|
|
|
|
|
|
- /** The key of the message: retry because of illegal transition */
|
|
|
+ /** The key of the message: retry because of illegal transition. */
|
|
|
public static final String ERRORS_APP_ILLEGAL_TRANSITION = "{errors.app.illegal.transition}";
|
|
|
|
|
|
- /** The key of the message: others might be updated, so retry */
|
|
|
+ /** The key of the message: others might be updated, so retry. */
|
|
|
public static final String ERRORS_APP_DB_ALREADY_DELETED = "{errors.app.db.already.deleted}";
|
|
|
|
|
|
- /** The key of the message: others might be updated, so retry */
|
|
|
+ /** The key of the message: others might be updated, so retry. */
|
|
|
public static final String ERRORS_APP_DB_ALREADY_UPDATED = "{errors.app.db.already.updated}";
|
|
|
|
|
|
- /** The key of the message: already existing data, so retry */
|
|
|
+ /** The key of the message: already existing data, so retry. */
|
|
|
public static final String ERRORS_APP_DB_ALREADY_EXISTS = "{errors.app.db.already.exists}";
|
|
|
|
|
|
- /** The key of the message: double submit might be requested */
|
|
|
+ /** The key of the message: double submit might be requested. */
|
|
|
public static final String ERRORS_APP_DOUBLE_SUBMIT_REQUEST = "{errors.app.double.submit.request}";
|
|
|
|
|
|
/** The key of the message: Failed to update parameters. Please contact to a site administrator. */
|
|
@@ -525,259 +532,276 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.AssertFalse.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be false
|
|
|
+ * message: {item} must be false.
|
|
|
* comment: ---------------
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsAssertFalseMessage(String property) {
|
|
|
+ public FessMessages addConstraintsAssertFalseMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_AssertFalse_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_AssertFalse_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.AssertTrue.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be true
|
|
|
+ * message: {item} must be true.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsAssertTrueMessage(String property) {
|
|
|
+ public FessMessages addConstraintsAssertTrueMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_AssertTrue_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_AssertTrue_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.DecimalMax.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be less than ${inclusive == true ? 'or equal to ' : ''}{value}
|
|
|
+ * message: {item} must be less than ${inclusive == true ? 'or equal to ' : ''}{value}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsDecimalMaxMessage(String property, String value) {
|
|
|
+ public FessMessages addConstraintsDecimalMaxMessage(String property, String item, String value) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_DecimalMax_MESSAGE, value));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_DecimalMax_MESSAGE, item, value));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.DecimalMin.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}
|
|
|
+ * message: {item} must be greater than ${inclusive == true ? 'or equal to ' : ''}{value}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsDecimalMinMessage(String property, String value) {
|
|
|
+ public FessMessages addConstraintsDecimalMinMessage(String property, String item, String value) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_DecimalMin_MESSAGE, value));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_DecimalMin_MESSAGE, item, value));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Digits.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected)
|
|
|
+ * message: {item} is numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected).
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param integer The parameter integer for message. (NotNull)
|
|
|
* @param fraction The parameter fraction for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsDigitsMessage(String property, String integer, String fraction) {
|
|
|
+ public FessMessages addConstraintsDigitsMessage(String property, String item, String integer, String fraction) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Digits_MESSAGE, integer, fraction));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Digits_MESSAGE, item, integer, fraction));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Future.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be in the future
|
|
|
+ * message: {item} must be in the future.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsFutureMessage(String property) {
|
|
|
+ public FessMessages addConstraintsFutureMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Future_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Future_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Max.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be less than or equal to {value}
|
|
|
+ * message: {item} must be less than or equal to {value}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsMaxMessage(String property, String value) {
|
|
|
+ public FessMessages addConstraintsMaxMessage(String property, String item, String value) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Max_MESSAGE, value));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Max_MESSAGE, item, value));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Min.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be greater than or equal to {value}
|
|
|
+ * message: {item} must be greater than or equal to {value}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsMinMessage(String property, String value) {
|
|
|
+ public FessMessages addConstraintsMinMessage(String property, String item, String value) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Min_MESSAGE, value));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Min_MESSAGE, item, value));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.NotNull.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: may not be null
|
|
|
+ * message: {item} may not be null.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsNotNullMessage(String property) {
|
|
|
+ public FessMessages addConstraintsNotNullMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_NotNull_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotNull_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Null.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be null
|
|
|
+ * message: {item} must be null.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsNullMessage(String property) {
|
|
|
+ public FessMessages addConstraintsNullMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Null_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Null_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Past.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be in the past
|
|
|
+ * message: {item} must be in the past.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsPastMessage(String property) {
|
|
|
+ public FessMessages addConstraintsPastMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Past_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Past_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Pattern.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must match "{regexp}"
|
|
|
+ * message: {item} must match "{regexp}".
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param regexp The parameter regexp for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsPatternMessage(String property, String regexp) {
|
|
|
+ public FessMessages addConstraintsPatternMessage(String property, String item, String regexp) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Pattern_MESSAGE, regexp));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Pattern_MESSAGE, item, regexp));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Size.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: size must be between {min} and {max}
|
|
|
+ * message: Size of {item} must be between {min} and {max}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param min The parameter min for message. (NotNull)
|
|
|
* @param max The parameter max for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsSizeMessage(String property, String min, String max) {
|
|
|
+ public FessMessages addConstraintsSizeMessage(String property, String item, String min, String max) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Size_MESSAGE, min, max));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Size_MESSAGE, item, min, max));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.CreditCardNumber.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: invalid credit card number
|
|
|
+ * message: {item} is invalid credit card number.
|
|
|
* comment: -------------------
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsCreditCardNumberMessage(String property) {
|
|
|
+ public FessMessages addConstraintsCreditCardNumberMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_CreditCardNumber_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_CreditCardNumber_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.EAN.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: invalid {type} barcode
|
|
|
+ * message: {item} is invalid {type} barcode.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param type The parameter type for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsEanMessage(String property, String type) {
|
|
|
+ public FessMessages addConstraintsEanMessage(String property, String item, String type) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_EAN_MESSAGE, type));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_EAN_MESSAGE, item, type));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Email.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: not a well-formed email address
|
|
|
+ * message: {item} is not a well-formed email address.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsEmailMessage(String property) {
|
|
|
+ public FessMessages addConstraintsEmailMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Email_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Email_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Length.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: length must be between {min} and {max}
|
|
|
+ * message: Length of {item} must be between {min} and {max}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param min The parameter min for message. (NotNull)
|
|
|
* @param max The parameter max for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsLengthMessage(String property, String min, String max) {
|
|
|
+ public FessMessages addConstraintsLengthMessage(String property, String item, String min, String max) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Length_MESSAGE, min, max));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Length_MESSAGE, item, min, max));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.LuhnCheck.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed
|
|
|
+ * message: The check digit for ${value} is invalid, Luhn Modulo 10 checksum failed.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
@@ -792,7 +816,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Mod10Check.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: The check digit for ${value} is invalid, Modulo 10 checksum failed
|
|
|
+ * message: The check digit for ${value} is invalid, Modulo 10 checksum failed.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
@@ -807,7 +831,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Mod11Check.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: The check digit for ${value} is invalid, Modulo 11 checksum failed
|
|
|
+ * message: The check digit for ${value} is invalid, Modulo 11 checksum failed.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
@@ -822,7 +846,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.ModCheck.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: The check digit for ${value} is invalid, ${modType} checksum failed
|
|
|
+ * message: The check digit for ${value} is invalid, ${modType} checksum failed.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param value The parameter value for message. (NotNull)
|
|
@@ -838,35 +862,37 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.NotBlank.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: may not be empty
|
|
|
+ * message: {item} may not be empty.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsNotBlankMessage(String property) {
|
|
|
+ public FessMessages addConstraintsNotBlankMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_NotBlank_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotBlank_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.NotEmpty.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: may not be empty
|
|
|
+ * message: {item} may not be empty.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsNotEmptyMessage(String property) {
|
|
|
+ public FessMessages addConstraintsNotEmptyMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_NotEmpty_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_NotEmpty_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.ParametersScriptAssert.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: script expression "{script}" didn't evaluate to true
|
|
|
+ * message: script expression "{script}" didn't evaluate to true.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param script The parameter script for message. (NotNull)
|
|
@@ -881,37 +907,39 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Range.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be between {min} and {max}
|
|
|
+ * message: {item} must be between {min} and {max}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @param min The parameter min for message. (NotNull)
|
|
|
* @param max The parameter max for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsRangeMessage(String property, String min, String max) {
|
|
|
+ public FessMessages addConstraintsRangeMessage(String property, String item, String min, String max) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Range_MESSAGE, min, max));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Range_MESSAGE, item, min, max));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.SafeHtml.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: may have unsafe html content
|
|
|
+ * message: {item} may have unsafe html content.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsSafeHtmlMessage(String property) {
|
|
|
+ public FessMessages addConstraintsSafeHtmlMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_SafeHtml_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_SafeHtml_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.ScriptAssert.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: script expression "{script}" didn't evaluate to true
|
|
|
+ * message: script expression "{script}" didn't evaluate to true.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @param script The parameter script for message. (NotNull)
|
|
@@ -926,91 +954,130 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.URL.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: must be a valid URL
|
|
|
+ * message: {item} must be a valid URL.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsUrlMessage(String property) {
|
|
|
+ public FessMessages addConstraintsUrlMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_URL_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_URL_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'constraints.Required.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: is required
|
|
|
+ * message: {item} is required.
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsRequiredMessage(String property, String item) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_Required_MESSAGE, item));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.TypeInteger.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: {item} should be numeric.
|
|
|
+ * </pre>
|
|
|
+ * @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
+ * @return this. (NotNull)
|
|
|
+ */
|
|
|
+ public FessMessages addConstraintsTypeIntegerMessage(String property, String item) {
|
|
|
+ assertPropertyNotNull(property);
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_TypeInteger_MESSAGE, item));
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Add the created action message for the key 'constraints.TypeLong.message' with parameters.
|
|
|
+ * <pre>
|
|
|
+ * message: {item} should be numeric.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsRequiredMessage(String property) {
|
|
|
+ public FessMessages addConstraintsTypeLongMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_Required_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_TypeLong_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Add the created action message for the key 'constraints.IntegerType.message' with parameters.
|
|
|
+ * Add the created action message for the key 'constraints.TypeFloat.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: should be integer
|
|
|
+ * message: {item} should be numeric.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsIntegerTypeMessage(String property) {
|
|
|
+ public FessMessages addConstraintsTypeFloatMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_IntegerType_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_TypeFloat_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Add the created action message for the key 'constraints.LongType.message' with parameters.
|
|
|
+ * Add the created action message for the key 'constraints.TypeDouble.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: should be long
|
|
|
+ * message: {item} should be numeric.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsLongTypeMessage(String property) {
|
|
|
+ public FessMessages addConstraintsTypeDoubleMessage(String property, String item) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_LongType_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_TypeDouble_MESSAGE, item));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Add the created action message for the key 'constraints.FloatType.message' with parameters.
|
|
|
+ * Add the created action message for the key 'constraints.TypeAny.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: should be float
|
|
|
+ * message: {item} cannot convert as {propertyType}.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
+ * @param propertyType The parameter propertyType for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsFloatTypeMessage(String property) {
|
|
|
+ public FessMessages addConstraintsTypeAnyMessage(String property, String item, String propertyType) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_FloatType_MESSAGE));
|
|
|
+ add(property, new ActionMessage(CONSTRAINTS_TypeAny_MESSAGE, item, propertyType));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Add the created action message for the key 'constraints.DoubleType.message' with parameters.
|
|
|
+ * Add the created action message for the key 'org.lastaflute.validator.constraints.TypeAny.message' with parameters.
|
|
|
* <pre>
|
|
|
- * message: should be double
|
|
|
+ * message: {item} cannot convert as {propertyType}.
|
|
|
+ * comment: TODO workaround
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
+ * @param item The parameter item for message. (NotNull)
|
|
|
+ * @param propertyType The parameter propertyType for message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
|
*/
|
|
|
- public FessMessages addConstraintsDoubleTypeMessage(String property) {
|
|
|
+ public FessMessages addOrgLastafluteValidatorConstraintsTypeAnyMessage(String property, String item, String propertyType) {
|
|
|
assertPropertyNotNull(property);
|
|
|
- add(property, new ActionMessage(CONSTRAINTS_DoubleType_MESSAGE));
|
|
|
+ add(property, new ActionMessage(ORG_LASTAFLUTE_VALIDATOR_CONSTRAINTS_TypeAny_MESSAGE, item, propertyType));
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.login.failure' with parameters.
|
|
|
* <pre>
|
|
|
- * message: could not login
|
|
|
+ * message: could not login.
|
|
|
* comment: - - - - - - - - - -/
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
@@ -1025,7 +1092,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.app.illegal.transition' with parameters.
|
|
|
* <pre>
|
|
|
- * message: retry because of illegal transition
|
|
|
+ * message: retry because of illegal transition.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
@@ -1039,7 +1106,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.app.db.already.deleted' with parameters.
|
|
|
* <pre>
|
|
|
- * message: others might be updated, so retry
|
|
|
+ * message: others might be updated, so retry.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
@@ -1053,7 +1120,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.app.db.already.updated' with parameters.
|
|
|
* <pre>
|
|
|
- * message: others might be updated, so retry
|
|
|
+ * message: others might be updated, so retry.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
@@ -1067,7 +1134,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.app.db.already.exists' with parameters.
|
|
|
* <pre>
|
|
|
- * message: already existing data, so retry
|
|
|
+ * message: already existing data, so retry.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @return this. (NotNull)
|
|
@@ -1081,7 +1148,7 @@ public class FessMessages extends FessLabels {
|
|
|
/**
|
|
|
* Add the created action message for the key 'errors.app.double.submit.request' with parameters.
|
|
|
* <pre>
|
|
|
- * message: double submit might be requested
|
|
|
+ * message: double submit might be requested.
|
|
|
* </pre>
|
|
|
* @param property The property name for the message. (NotNull)
|
|
|
* @return this. (NotNull)
|