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.
|
validateResolvedParameter
public static final BytesValidator createSha1(boolean nullable)
public Long getMin()
MinMaxValidator
getMin
in interface MinMaxValidator
null
if there is no minimumpublic Long getMax()
MinMaxValidator
getMax
in interface MinMaxValidator
null
if there is no minimumpublic void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
validateParameter
in interface ParameterValidator
validateParameter
in class ModelTypeValidator
parameterName
- the name of the parameter. Cannot be null
value
- the parameter value. Cannot be null
OperationFailedException
- if the value is not validCopyright © 2023 JBoss by Red Hat. All rights reserved.