Class URIValidator
- java.lang.Object
-
- org.jboss.as.controller.operations.validation.ModelTypeValidator
-
- org.jboss.as.controller.operations.validation.StringLengthValidator
-
- org.jboss.as.controller.operations.validation.URIValidator
-
- All Implemented Interfaces:
MinMaxValidator
,ParameterValidator
public class URIValidator extends StringLengthValidator
AParameterValidator
to verify that a parameter is a correctly formed URI.- Author:
- Darran Lofthouse
-
-
Field Summary
-
Fields inherited from class org.jboss.as.controller.operations.validation.StringLengthValidator
max, min
-
Fields inherited from class org.jboss.as.controller.operations.validation.ModelTypeValidator
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes
-
-
Constructor Summary
Constructors Constructor Description URIValidator(boolean nullable, boolean allowExpressions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validateParameter(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
-
-
-
-
Method Detail
-
validateParameter
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
Description copied from class:StringLengthValidator
Validate the parameter with the given name.- Specified by:
validateParameter
in interfaceParameterValidator
- Overrides:
validateParameter
in classStringLengthValidator
- Parameters:
parameterName
- the name of the parameter. Cannot benull
value
- the parameter value. Cannot benull
- Throws:
OperationFailedException
- if the value is not valid
-
-