public interface ParameterValidator
| Modifier and Type | Method and Description |
|---|---|
void |
validateParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.
|
default void |
validateResolvedParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Deprecated.
Callers should resolve the value themselves with an
ExpressionResolver
and then use validateParameter(String, ModelNode) since a ParameterValidator does not
have access to all expression resolution sources |
void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
parameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not valid@Deprecated default void validateResolvedParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
ExpressionResolver
and then use validateParameter(String, ModelNode) since a ParameterValidator does not
have access to all expression resolution sourcesValueExpression in the given value.parameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not validCopyright © 2020 JBoss by Red Hat. All rights reserved.