Class PatternValueValidator

  • All Implemented Interfaces:
    Validator

    public final class PatternValueValidator
    extends ValueValidator
    Validates query values that are Pattern to check the field type is a String.
    • Method Detail

      • getInstance

        public static PatternValueValidator getInstance()
        Get the instance.
        Returns:
        the Singleton instance of this validator
      • getRequiredValueType

        protected java.lang.Class getRequiredValueType()
        Description copied from class: ValueValidator
        Used by apply to figure out whether to apply the validation or simply return.
        Specified by:
        getRequiredValueType in class ValueValidator
        Returns:
        the class the value should be in order to go ahead and perform validation