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.
|
validateResolvedParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateResolvedParameterpublic MapValidator(ParameterValidator elementValidator)
MapValidatorelementValidator - validator for list elementspublic MapValidator(ParameterValidator elementValidator, boolean nullable)
MapValidatorelementValidator - validator for map valuesnullable - true if the model node for the list can be null or ModelType.UNDEFINEDpublic MapValidator(ParameterValidator elementValidator, boolean nullable, int minSize, int maxSize)
MapValidatorelementValidator - validator for map valuesnullable - true if the model node for the map can be null or ModelType.UNDEFINEDminSize - 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
ModelTypeValidatorvalidateParameter 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.