Class DefaultTypeValidator

  • All Implemented Interfaces:

    public final class DefaultTypeValidator
    extends TypeValidator
    This is a fall-through validator that looks at the type and at the class of the value and figures out if they're similar enough to be used to query.
    • Method Detail

      • getInstance

        public static DefaultTypeValidator getInstance()
        Get the instance.
        the Singleton instance of this validator
      • appliesTo

        protected boolean appliesTo​(java.lang.Class<?> type)
        Always returns true, applies to all types
        Specified by:
        appliesTo in class TypeValidator
        type - the type to be validated
        true. Always.
      • validate

        protected void validate​(java.lang.Class<?> type,
                                java.lang.Object value,
                                java.util.List<ValidationFailure> validationFailures)
        Specified by:
        validate in class TypeValidator