Interface ParameterValidator
-
- All Known Implementing Classes:
BytesValidator,ChainedParameterValidator,CharsetValidator,EnumValidator,InetAddressValidator,IntAllowedValuesValidator,IntRangeValidator,ListValidator,LongRangeValidator,MapValidator,MaskedAddressValidator,ModelTypeValidator,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateParameter(String parameterName, org.jboss.dmr.ModelNode value)Validate the parameter with the given name.
-
-
-
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 benullvalue- the parameter value. Cannot benull- Throws:
OperationFailedException- if the value is not valid
-
-