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.
|
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 ModelNode.resolve() is not
an adequate expression resolution approach |
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 void validateResolvedParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
ExpressionResolver
and then use validateParameter(String, ModelNode) since ModelNode.resolve() is not
an adequate expression resolution approachresolving the given value.parameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not validCopyright © 2017 JBoss by Red Hat. All rights reserved.