public class ObjectTypeValidator extends ModelTypeValidator implements AllowedValuesValidator
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes
Constructor and Description |
---|
ObjectTypeValidator(boolean nullable,
AttributeDefinition... attributes) |
Modifier and Type | Method and Description |
---|---|
List<org.jboss.dmr.ModelNode> |
getAllowedValues()
Gets the allowed values, or
null if any value is allowed. |
void |
validateParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.
|
validateResolvedParameter
public ObjectTypeValidator(boolean nullable, AttributeDefinition... attributes)
public 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 validpublic List<org.jboss.dmr.ModelNode> getAllowedValues()
AllowedValuesValidator
null
if any value is allowed.getAllowedValues
in interface AllowedValuesValidator
null
Copyright © 2023 JBoss by Red Hat. All rights reserved.