Module aeonics.core

Class Parameter.Rule

  • Enclosing class:
    Parameter

    public static class Parameter.Rule
    extends java.lang.Object
    This class provides default values that can be used in Parameter.rule(Predicate).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.function.Predicate<java.lang.String> ALPHA
      Rule for letters a-z A-Z
      static java.util.function.Predicate<java.lang.String> ALPHANUM
      Rule for letters and digits a-z A-Z 0-9
      static java.util.function.Predicate<java.lang.String> ALPHANUMSPACE
      Rule for letters, digits and space a-z A-Z 0-9
      static java.util.function.Predicate<java.lang.String> BASE64
      Rule for base64
      static java.util.function.Predicate<java.lang.String> BOOLEAN
      Rule for boolean
      static java.util.function.Predicate<java.lang.String> DIGIT
      Rule for digits 0-9
      static java.util.function.Predicate<java.lang.String> EMAIL
      Rule for email address
      static java.util.function.Predicate<java.lang.String> FILENAME
      Rule for file name
      static java.util.function.Predicate<java.lang.String> FLOAT
      Rule for floating point number
      static java.util.function.Predicate<java.lang.String> HEXA
      Rule for hexa
      static java.util.function.Predicate<java.lang.String> ID
      Rule for entity id
      static java.util.function.Predicate<java.lang.String> INTEGER
      Rule for integer
      static java.util.function.Predicate<java.lang.String> JSON_LIST
      Rule for JSON Array Note that this is a simple trivial check, it does not mean that the value is a valid JSON Array.
      static java.util.function.Predicate<java.lang.String> JSON_MAP
      Rule for JSON Object Note that this is a simple trivial check, it does not mean that the value is a valid JSON Object.
      static java.util.function.Predicate<java.lang.String> LOWER
      Rule for lower case a-z
      static java.util.function.Predicate<java.lang.String> PATH
      Rule for routing path
      static java.util.function.Predicate<java.lang.String> UPPER
      Rule for upper case A-Z
      static java.util.function.Predicate<java.lang.String> URL
      Rule for URL
      static java.util.function.Predicate<java.lang.String> WILDCARD_PATH
      Rule for routing path with wildcards
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UPPER

        public static final java.util.function.Predicate<java.lang.String> UPPER
        Rule for upper case A-Z
      • LOWER

        public static final java.util.function.Predicate<java.lang.String> LOWER
        Rule for lower case a-z
      • DIGIT

        public static final java.util.function.Predicate<java.lang.String> DIGIT
        Rule for digits 0-9
      • ALPHA

        public static final java.util.function.Predicate<java.lang.String> ALPHA
        Rule for letters a-z A-Z
      • ALPHANUM

        public static final java.util.function.Predicate<java.lang.String> ALPHANUM
        Rule for letters and digits a-z A-Z 0-9
      • ALPHANUMSPACE

        public static final java.util.function.Predicate<java.lang.String> ALPHANUMSPACE
        Rule for letters, digits and space a-z A-Z 0-9
      • BOOLEAN

        public static final java.util.function.Predicate<java.lang.String> BOOLEAN
        Rule for boolean
      • BASE64

        public static final java.util.function.Predicate<java.lang.String> BASE64
        Rule for base64
      • HEXA

        public static final java.util.function.Predicate<java.lang.String> HEXA
        Rule for hexa
      • INTEGER

        public static final java.util.function.Predicate<java.lang.String> INTEGER
        Rule for integer
      • FLOAT

        public static final java.util.function.Predicate<java.lang.String> FLOAT
        Rule for floating point number
      • PATH

        public static final java.util.function.Predicate<java.lang.String> PATH
        Rule for routing path
      • WILDCARD_PATH

        public static final java.util.function.Predicate<java.lang.String> WILDCARD_PATH
        Rule for routing path with wildcards
      • ID

        public static final java.util.function.Predicate<java.lang.String> ID
        Rule for entity id
      • EMAIL

        public static final java.util.function.Predicate<java.lang.String> EMAIL
        Rule for email address
      • FILENAME

        public static final java.util.function.Predicate<java.lang.String> FILENAME
        Rule for file name
      • URL

        public static final java.util.function.Predicate<java.lang.String> URL
        Rule for URL
      • JSON_MAP

        public static final java.util.function.Predicate<java.lang.String> JSON_MAP
        Rule for JSON Object Note that this is a simple trivial check, it does not mean that the value is a valid JSON Object.
      • JSON_LIST

        public static final java.util.function.Predicate<java.lang.String> JSON_LIST
        Rule for JSON Array Note that this is a simple trivial check, it does not mean that the value is a valid JSON Array.