Class MulticastAddressValidator
java.lang.Object
org.jboss.as.controller.operations.validation.ModelTypeValidator
org.jboss.as.controller.operations.validation.StringLengthValidator
org.jboss.as.controller.operations.validation.MulticastAddressValidator
- All Implemented Interfaces:
MinMaxValidator,ParameterValidator
Validates that a value can resolve to a multicast address.
- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
Field Summary
Fields inherited from class org.jboss.as.controller.operations.validation.StringLengthValidator
max, minFields inherited from class org.jboss.as.controller.operations.validation.ModelTypeValidator
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateParameter(String parameterName, org.jboss.dmr.ModelNode value) Validate the parameter with the given name.Methods inherited from class org.jboss.as.controller.operations.validation.StringLengthValidator
getMax, getMin
-
Constructor Details
-
MulticastAddressValidator
public MulticastAddressValidator(boolean allowNull, boolean allowExpressions)
-
-
Method Details
-
validateParameter
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException Description copied from class:StringLengthValidatorValidate the parameter with the given name.- Specified by:
validateParameterin interfaceParameterValidator- Overrides:
validateParameterin classStringLengthValidator- Parameters:
parameterName- the name of the parameter. Cannot benullvalue- the parameter value. Cannot benull- Throws:
OperationFailedException- if the value is not valid
-