@Override public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException { switch (value.getType()) { case EXPRESSION: if (!allowExpression) { throw MESSAGES.expressionNotAllowed(parameterName); } break; case UNDEFINED: if (allowNull != null) { if (!allowNull) { throw MESSAGES.nullNotAllowed(parameterName); } break; } // else fall through and let the delegate validate default: delegate.validateResolvedParameter(parameterName, value); } }
@Override public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException { switch (value.getType()) { case EXPRESSION: if (!allowExpression) { throw MESSAGES.expressionNotAllowed(parameterName); } break; case UNDEFINED: if (allowNull != null) { if (!allowNull) { throw MESSAGES.nullNotAllowed(parameterName); } break; } // else fall through and let the delegate validate default: delegate.validateParameter(parameterName, value); } }
@Override public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException { switch (value.getType()) { case EXPRESSION: if (!allowExpression) { throw MESSAGES.expressionNotAllowed(parameterName); } break; case UNDEFINED: if (allowNull != null) { if (!allowNull) { throw MESSAGES.nullNotAllowed(parameterName); } break; } // else fall through and let the delegate validate default: delegate.validateParameter(parameterName, value); } }
@Override public void validateResolvedParameter(String parameterName, ModelNode value) throws OperationFailedException { switch (value.getType()) { case EXPRESSION: if (!allowExpression) { throw MESSAGES.expressionNotAllowed(parameterName); } break; case UNDEFINED: if (allowNull != null) { if (!allowNull) { throw MESSAGES.nullNotAllowed(parameterName); } break; } // else fall through and let the delegate validate default: delegate.validateResolvedParameter(parameterName, value); } }