public class BytesValidator extends ModelTypeValidator implements MinMaxValidator
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes| Constructor and Description |
|---|
BytesValidator(int min,
int max,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
static BytesValidator |
createSha1(boolean nullable) |
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.
|
validateResolvedParameterpublic static final BytesValidator createSha1(boolean nullable)
public Long getMin()
MinMaxValidatorgetMin in interface MinMaxValidatornull if there is no minimumpublic Long getMax()
MinMaxValidatorgetMax in interface MinMaxValidatornull if there is no minimumpublic 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 validCopyright © 2016 JBoss by Red Hat. All rights reserved.