Class Validators.RequiredValidator

    • Constructor Detail

      • RequiredValidator

        public RequiredValidator​(Required required)
    • Method Detail

      • validate

        public void validate​(Object value,
                             String field,
                             Context context)
        Description copied from interface: Validator
        Validate the given value
        Specified by:
        validate in interface Validator<Object>
        value - The value, may be null
        field - The name of the field being validated, if applicable
        context - The Ninja request context
      • getValidatedType

        public Class<Object> getValidatedType()
        Description copied from interface: Validator
        Get the type that this validator validates
        Specified by:
        getValidatedType in interface Validator<Object>
        The type that the validator validates