Interface ParameterValidator

All Known Implementing Classes:
BytesValidator, ChainedParameterValidator, CharsetValidator, EnumValidator, InetAddressValidator, IntAllowedValuesValidator, IntRangeValidator, ListValidator, LongRangeValidator, MapValidator, MaskedAddressValidator, ModelTypeValidator, ModuleNameValidator, MulticastAddressValidator, NillableOrExpressionParameterValidator, ObjectTypeValidator, ParametersValidator, PathAddressValidator, PropertyValidator, StringAllowedValuesValidator, StringBytesLengthValidator, StringLengthValidator, SubnetValidator, TimeUnitValidator, URIValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ParameterValidator
Performs validation on detyped operation parameters.
Author:
Brian Stansberry (c) 2011 Red Hat Inc.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validateParameter(String parameterName, org.jboss.dmr.ModelNode value)
    Validate the parameter with the given name.
  • Method Details

    • 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