Interface ParameterValidator

    • Method Detail

      • validateParameter

        void validateParameter​(String parameterName,
                               org.jboss.dmr.ModelNode value)
                        throws OperationFailedException
        Validate the parameter with the given name.
        Parameters:
        parameterName - the name of the parameter. Cannot be null
        value - the parameter value. Cannot be null
        Throws:
        OperationFailedException - if the value is not valid
      • validateResolvedParameter

        @Deprecated
        default void validateResolvedParameter​(String parameterName,
                                               org.jboss.dmr.ModelNode value)
                                        throws OperationFailedException
        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
        Validate the parameter with the given name, after first resolving any ValueExpression in the given value.
        Parameters:
        parameterName - the name of the parameter. Cannot be null
        value - the parameter value. Cannot be null
        Throws:
        OperationFailedException - if the value is not valid