public class MapValidator extends ModelTypeValidator implements ParameterValidator
ModelType.OBJECT
.BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes
Constructor and Description |
---|
MapValidator(ParameterValidator elementValidator)
Constructs a new
MapValidator |
MapValidator(ParameterValidator elementValidator,
boolean nullable)
Constructs a new
MapValidator |
MapValidator(ParameterValidator elementValidator,
boolean nullable,
int minSize,
int maxSize)
Constructs a new
MapValidator |
Modifier and Type | Method and Description |
---|---|
void |
validateParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.
|
validateResolvedParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateResolvedParameter
public MapValidator(ParameterValidator elementValidator)
MapValidator
elementValidator
- validator for list elementspublic MapValidator(ParameterValidator elementValidator, boolean nullable)
MapValidator
elementValidator
- validator for map valuesnullable
- true
if the model node for the list can be null
or ModelType.UNDEFINED
public MapValidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize)
MapValidator
elementValidator
- validator for map valuesnullable
- true
if the model node for the map can be null
or ModelType.UNDEFINED
minSize
- minimum number of elements in the listmaxSize
- maximum number of elements in the listpublic void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
ModelTypeValidator
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.