public class StringBytesLengthValidator 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 |
---|
StringBytesLengthValidator(int min) |
StringBytesLengthValidator(int min,
boolean nullable) |
StringBytesLengthValidator(int min,
boolean nullable,
boolean allowExpressions) |
StringBytesLengthValidator(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.
|
validateResolvedParameter
public StringBytesLengthValidator(int min)
public StringBytesLengthValidator(int min, boolean nullable)
public StringBytesLengthValidator(int min, int max, boolean nullable, boolean allowExpressions)
public StringBytesLengthValidator(int min, boolean nullable, boolean allowExpressions)
public 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 validpublic 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 minimumCopyright © 2023 JBoss by Red Hat. All rights reserved.