public class IntRangeValidator extends ModelTypeValidator implements MinMaxValidator
| Modifier and Type | Field and Description |
|---|---|
protected int |
max |
protected int |
min |
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes| Constructor and Description |
|---|
IntRangeValidator(int min) |
IntRangeValidator(int min,
boolean nullable) |
IntRangeValidator(int min,
boolean nullable,
boolean allowExpressions) |
IntRangeValidator(int min,
int max) |
IntRangeValidator(int min,
int max,
boolean nullable,
boolean allowExpressions) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getMax()
Gets the maximum, if there is one.
|
Long |
getMin()
Gets the minimum, if there is one.
|
void |
validateParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateResolvedParameterpublic IntRangeValidator(int min)
public IntRangeValidator(int min,
int max)
public IntRangeValidator(int min,
boolean nullable)
public IntRangeValidator(int min,
boolean nullable,
boolean allowExpressions)
public IntRangeValidator(int min,
int max,
boolean nullable,
boolean allowExpressions)
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
validateParameter in interface ParameterValidatorvalidateParameter in class ModelTypeValidatorparameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not validpublic Long getMin()
MinMaxValidatorgetMin in interface MinMaxValidatornull if there is no minimumpublic Long getMax()
MinMaxValidatorgetMax in interface MinMaxValidatornull if there is no minimumCopyright © 2021 JBoss by Red Hat. All rights reserved.