SITKeyValueFilter Class Reference

Inherits from NSObject
Declared in SITKeyValueFilter.h

Overview

Auxiliar class that determine how to filter the Strings of a dictionary (customFields) included in different classes (for example, SITPOIBase)

  filterBy

One of the values in kSITKeyValueFilterBy

@property (nonatomic, readonly) kSITKeyValueFilterBy filterBy

Declared In

SITKeyValueFilter.h

  pattern

regular expression

@property (nonatomic, strong, readonly) NSString *pattern

Declared In

SITKeyValueFilter.h

– initWithPattern:filterBy:

Initializer

- (instancetype)initWithPattern:(NSString *)pattern filterBy:(kSITKeyValueFilterBy)filterBy

Parameters

pattern

regular expression

filterBy

one of the values in kSITKeyValueFilterBy

Return Value

initialized instance of class SITKeyValueFilter

Declared In

SITKeyValueFilter.h

– regularExpression

Getter for built regular expression

- (NSRegularExpression *)regularExpression

Return Value

NSRegularExpression or nil if the patter is not valid

Declared In

SITKeyValueFilter.h

– isValid

Determines if the filter is valid

- (BOOL)isValid

Return Value

BOOL value indicating if the filter is valid YES (pattern is valid) or not (NO). NOTE: This only checks if the pattern is syntactically valid, not semantically valid

Declared In

SITKeyValueFilter.h