Class OSDQFunctions


  • public class OSDQFunctions
    extends Object
    This class will be reflectively loaded in engine, so be cautioned about renaming this.
    • Constructor Detail

      • OSDQFunctions

        public OSDQFunctions()
    • Method Detail

      • digit

        @TeiidFunction(category="Miscellaneous")
        public static String digit​(String sourceValue)
        Parameters:
        sourceValue -
        Returns:
        This function will return digit characters of the string
      • whitespaceIndex

        @TeiidFunction(category="Miscellaneous")
        public static int whitespaceIndex​(String val)
        Parameters:
        val -
        Returns:
        -1 of no match otherwise index of the first match
      • validCreditCard

        @TeiidFunction(category="Miscellaneous")
        public static boolean validCreditCard​(String cc)
        Parameters:
        cc - Credit Card number
        Returns:
        boolean if matches credit card logic and checksum
      • validSSN

        @TeiidFunction(category="Miscellaneous")
        public static boolean validSSN​(String ssn)
        Parameters:
        ssn - number
        Returns:
        boolean if matches ssn logic
      • validPhone

        @TeiidFunction(category="Miscellaneous")
        public static boolean validPhone​(String phone)
        Parameters:
        phone - number
        Returns:
        boolean if matches phone logic more than 8 character less than 12 character can't start with 000
      • validEmail

        @TeiidFunction(category="Miscellaneous")
        public static boolean validEmail​(String email)
        Parameters:
        email -
        Returns:
        boolean if valid email