public class ParametersOfValidator extends Object implements ParameterValidator, MinMaxValidator, AllowedValuesValidator
| Constructor and Description |
|---|
ParametersOfValidator(ParametersValidator delegate) |
| Modifier and Type | Method and Description |
|---|---|
List<org.jboss.dmr.ModelNode> |
getAllowedValues()
Gets the allowed values, or
null if any value is allowed. |
Long |
getMax()
Gets the maximum, if there is one.
|
Long |
getMin()
Gets the minimum, if there is one.
|
void |
validateParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name.
|
void |
validateResolvedParameter(String parameterName,
org.jboss.dmr.ModelNode value)
Validate the parameter with the given name, after first
resolving the given value. |
public ParametersOfValidator(ParametersValidator delegate)
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
ParameterValidatorvalidateParameter in interface ParameterValidatorparameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not validpublic void validateResolvedParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
ParameterValidatorresolving the given value.validateResolvedParameter in interface ParameterValidatorparameterName - the name of the parameter. Cannot be nullvalue - the parameter value. Cannot be nullOperationFailedException - if the value is not validpublic Long getMin()
MinMaxValidatorgetMin in interface MinMaxValidatornull if there is no minimumpublic Long getMax()
MinMaxValidatorgetMax in interface MinMaxValidatornull if there is no minimumpublic List<org.jboss.dmr.ModelNode> getAllowedValues()
AllowedValuesValidatornull if any value is allowed.getAllowedValues in interface AllowedValuesValidatornullCopyright © 2015 JBoss by Red Hat. All rights reserved.