Package org.rundeck.utils
Class UUIDPropertyValidator
- java.lang.Object
-
- org.rundeck.utils.UUIDPropertyValidator
-
- All Implemented Interfaces:
PropertyValidator
public class UUIDPropertyValidator extends java.lang.Object implements PropertyValidator
Property validator for UUID input, which expects exact format '01234567-89ab-cdef-0123-456789abcdef'
-
-
Constructor Summary
Constructors Constructor Description UUIDPropertyValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(java.lang.String value)
static boolean
isValidUUID(java.lang.String value)
Return true if the value is validstatic boolean
validate(java.lang.String value)
Validate the input-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.plugins.configuration.PropertyValidator
isValid
-
-
-
-
Method Detail
-
isValid
public boolean isValid(java.lang.String value) throws ValidationException
- Specified by:
isValid
in interfacePropertyValidator
- Throws:
ValidationException
-
isValidUUID
public static boolean isValidUUID(java.lang.String value)
Return true if the value is valid- Parameters:
value
- input value- Returns:
- true if valid, false if not
-
validate
public static boolean validate(java.lang.String value) throws ValidationException
Validate the input- Parameters:
value
- input value- Returns:
- true if valid
- Throws:
ValidationException
- if invalid
-
-