Class ChainedParameterValidator
java.lang.Object
org.jboss.as.controller.operations.validation.ChainedParameterValidator
- All Implemented Interfaces:
AllowedValuesValidator,MinMaxValidator,ParameterValidator
public class ChainedParameterValidator
extends Object
implements ParameterValidator, MinMaxValidator, AllowedValuesValidator
- Author:
- Carlo de Wolf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterValidatorchain(ParameterValidator... validators) List<org.jboss.dmr.ModelNode>Gets the allowed values, ornullif any value is allowed.getMax()Gets the maximum, if there is one.getMin()Gets the minimum, if there is one.voidvalidateParameter(String parameterName, org.jboss.dmr.ModelNode value) Validate the parameter with the given name.
-
Constructor Details
-
ChainedParameterValidator
-
-
Method Details
-
chain
-
validateParameter
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException Description copied from interface:ParameterValidatorValidate the parameter with the given name.- Specified by:
validateParameterin interfaceParameterValidator- Parameters:
parameterName- the name of the parameter. Cannot benullvalue- the parameter value. Cannot benull- Throws:
OperationFailedException- if the value is not valid
-
getMin
Description copied from interface:MinMaxValidatorGets the minimum, if there is one.- Specified by:
getMinin interfaceMinMaxValidator- Returns:
- the minimum value, or
nullif there is no minimum
-
getMax
Description copied from interface:MinMaxValidatorGets the maximum, if there is one.- Specified by:
getMaxin interfaceMinMaxValidator- Returns:
- the maximum value, or
nullif there is no minimum
-
getAllowedValues
Description copied from interface:AllowedValuesValidatorGets the allowed values, ornullif any value is allowed.- Specified by:
getAllowedValuesin interfaceAllowedValuesValidator- Returns:
- the allowed values, or
null
-