Class 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'
    • 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 valid
      static 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
    • Constructor Detail

      • UUIDPropertyValidator

        public UUIDPropertyValidator()
    • Method Detail

      • 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