Interface ParameterValidator
-
- All Known Implementing Classes:
AbstractParameterValidator
,BytesValidator
,ChainedParameterValidator
,CharsetValidator
,EnumValidator
,InetAddressValidator
,IntAllowedValuesValidator
,IntRangeValidator
,ListValidator
,LongRangeValidator
,MapValidator
,MaskedAddressValidator
,ModelTypeValidator
,MulticastAddressValidator
,NillableOrExpressionParameterValidator
,ObjectTypeValidator
,ParametersOfValidator
,ParametersValidator
,PathAddressValidator
,PropertyValidator
,StringAllowedValuesValidator
,StringBytesLengthValidator
,StringLengthValidator
,SubnetValidator
,TimeUnitValidator
,URIValidator
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 Default Methods Deprecated Methods Modifier and Type Method Description void
validateParameter(String parameterName, org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.default void
validateResolvedParameter(String parameterName, org.jboss.dmr.ModelNode value)
Deprecated.Callers should resolve the value themselves with anExpressionResolver
and then usevalidateParameter(String, ModelNode)
since aParameterValidator
does not have access to all expression resolution sources
-
-
-
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 benull
value
- the parameter value. Cannot benull
- 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 anExpressionResolver
and then usevalidateParameter(String, ModelNode)
since aParameterValidator
does not have access to all expression resolution sourcesValidate the parameter with the given name, after first resolving anyValueExpression
in the givenvalue
.- Parameters:
parameterName
- the name of the parameter. Cannot benull
value
- the parameter value. Cannot benull
- Throws:
OperationFailedException
- if the value is not valid
-
-