public class LongRangeValidator extends ModelTypeValidator implements MinMaxValidator
| Modifier and Type | Field and Description |
|---|---|
protected long |
max |
protected long |
min |
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes| Constructor and Description |
|---|
LongRangeValidator(long min) |
LongRangeValidator(long min,
boolean nullable) |
LongRangeValidator(long min,
Long max) |
LongRangeValidator(long min,
long 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 LongRangeValidator(long min)
public LongRangeValidator(long min,
Long max)
public LongRangeValidator(long min,
boolean nullable)
public LongRangeValidator(long min,
long 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 © 2020 JBoss by Red Hat. All rights reserved.