Class ModuleNameValidator
- java.lang.Object
-
- org.jboss.as.controller.operations.validation.ModelTypeValidator
-
- org.jboss.as.controller.operations.validation.ModuleNameValidator
-
- All Implemented Interfaces:
ParameterValidator
public class ModuleNameValidator extends ModelTypeValidator
Validates that a given parameter is a syntactically valid module name within JBoss Modules. N.B. This does not validate that the module actually exists, i.e. can be loaded.
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterValidatorINSTANCE-
Fields inherited from class org.jboss.as.controller.operations.validation.ModelTypeValidator
BIGDECIMAL_MAX, BIGDECIMAL_MIN, BIGINTEGER_MAX, BIGINTEGER_MIN, nullable, strictType, validTypes
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateParameter(String parameterName, org.jboss.dmr.ModelNode value)Validate the parameter with the given name.
-
-
-
Field Detail
-
INSTANCE
public static final ParameterValidator INSTANCE
-
-
Method Detail
-
validateParameter
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
Description copied from class:ModelTypeValidatorValidate the parameter with the given name.- Specified by:
validateParameterin interfaceParameterValidator- Overrides:
validateParameterin classModelTypeValidator- Parameters:
parameterName- the name of the parameter. Cannot benullvalue- the parameter value. Cannot benull- Throws:
OperationFailedException- if the value is not valid
-
-