Class MaskedAddressValidator
- java.lang.Object
-
- org.jboss.as.controller.operations.validation.ModelTypeValidator
-
- org.jboss.as.controller.operations.validation.MaskedAddressValidator
-
- All Implemented Interfaces:
ParameterValidator
public class MaskedAddressValidator extends ModelTypeValidator
Validates that the given parameter is a string that can be converted into a masked InetAddress.- Author:
- Jason T, Greene
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaskedAddressValidator.ParsedResult
-
Field Summary
-
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 MaskedAddressValidator(boolean nullable, boolean allowExpressions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaskedAddressValidator.ParsedResultparseMasked(org.jboss.dmr.ModelNode value)voidvalidateParameter(String parameterName, org.jboss.dmr.ModelNode value)Validate the parameter with the given name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.operations.validation.ParameterValidator
validateResolvedParameter
-
-
-
-
Method Detail
-
validateParameter
public void validateParameter(String parameterName, org.jboss.dmr.ModelNode value) throws OperationFailedException
Validate 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
-
parseMasked
public static MaskedAddressValidator.ParsedResult parseMasked(org.jboss.dmr.ModelNode value) throws OperationFailedException
- Throws:
OperationFailedException
-
-