SFormBooleanFieldValidators Class Reference

Inherits from NSObject
Declared in SFormBooleanFieldValidators.h
Availability
Related samples

Overview

A utility class that provides helper methods for some common boolean field validator types.

Class Methods

compareWithBooleanField:validResult:

Creates a validator which compares the validating boolean field’s input against a specified boolean field’s input.

+ (SFormBooleanFieldComparisonValidator *)compareWithBooleanField:(SFormBooleanField *)field validResult:(SFormComparisonRule)expectedResult

Parameters

field

The boolean field that the validator will compare against.

expectedResult

The comparison result required for this validator to pass validation.

Return Value

A validator to use with a boolean field that compares it with another speicifed field.

Declared In

SFormBooleanFieldValidators.h

falseValidator

Creates a true validator to use with a boolean field.

+ (SFormBooleanFieldTrueValidator *)falseValidator

Return Value

A validator asserting that a boolean field’s value is false.

Declared In

SFormBooleanFieldValidators.h

trueValidator

Creates a true validator to use with a boolean field.

+ (SFormBooleanFieldTrueValidator *)trueValidator

Return Value

A validator asserting that a boolean field’s value is true.

Declared In

SFormBooleanFieldValidators.h