com.formkiq.server.service.dto.ActionValidatorMax Maven / Gradle / Ivy
package com.formkiq.server.service.dto;
/**
* Max Action Validator.
*
*/
public class ActionValidatorMax implements ActionValidator {
/** Int Value. */
private int intValue;
/** Validator Message. */
private String message;
/**
* constructor.
* @param value int
* @param msg String
*/
public ActionValidatorMax(final int value, final String msg) {
this.intValue = value;
this.message = msg;
}
@Override
public String getMessage() {
return this.message;
}
@Override
public ActionValidatorRuleType getRule() {
return ActionValidatorRuleType.MAX;
}
@Override
public Object getValue() {
return Integer.valueOf(this.intValue);
}
}