Class ValidateUtils


  • public final class ValidateUtils
    extends Object
    Checks the validity of DSL entries.
    Since:
    1.0.0
    • Field Detail

      • ALLOWED_MATCHING_TYPES_ON_SERVER_SIDE

        public static List<MatchingStrategy.Type> ALLOWED_MATCHING_TYPES_ON_SERVER_SIDE
        Allowed matching types on the server side.
    • Method Detail

      • validateServerValueIsAvailable

        public static Object validateServerValueIsAvailable​(Object value,
                                                            String msg)
        Validates if for given object the server value is present.
        Parameters:
        value - value to check
        msg - potential exception message
        Returns:
        object if everything is fine
      • validateServerValue

        public static void validateServerValue​(Pattern pattern,
                                               String msg)
      • validateServerValue

        public static void validateServerValue​(MatchingStrategy matchingStrategy,
                                               String msg)
      • validateServerValue

        public static void validateServerValue​(DslProperty value,
                                               String msg)
      • validateServerValue

        public static void validateServerValue​(Object value,
                                               String msg)