NNTagging Reference Library

NNSimpleQueryFilter Class Reference

NNSimpleQueryFilter Class Reference

Inherits from
Declared in NNSimpleQueryFilter.h

Overview

Use this if you want to add simple attribute - value constraints to the query. This is exactly the same as passing an additional string segment to MDQuery containing an attribute == value expression.

Tasks

Class Methods

simpleQueryFilterWithAttribute:value:

+ (NNSimpleQueryFilter *)simpleQueryFilterWithAttribute:(NSString *)anAttribute value:(NSString *)aValue
Parameters
anAttribute

Left-hand side of the constraining expression

aValue

Right-hand side of the constraining expression

Return Value

Filter for anAttribute == aValue

Discussion

Convenience method.

Declared In
NNSimpleQueryFilter.h

Instance Methods

initWithAttribute:value:

- (id)initWithAttribute:(NSString *)anAttribute value:(NSString *)aValue
Parameters
anAttribute

Left-hand side of the constraining expression

aValue

Right-hand side of the constraining expression

Return Value

Filter for anAttribute == aValue

Declared In
NNSimpleQueryFilter.h

attribute

- (NSString *)attribute
Return Value

Left-hand side of constraint

Declared In
NNSimpleQueryFilter.h

setAttribute:

- (void)setAttribute:(NSString *)anAttribute
Parameters
anAttribute

Left-hand side of expression

Declared In
NNSimpleQueryFilter.h

value

- (NSString *)value
Return Value

Right-hand side of expression

Declared In
NNSimpleQueryFilter.h

setValue:

- (void)setValue:(NSString *)aValue
Parameters
aValue

Right-hand side of expression

Declared In
NNSimpleQueryFilter.h

valueUsesWildcard

- (BOOL)valueUsesWildcard
Return Value

YES if expression should use wildcard for value, NO otherwise

Declared In
NNSimpleQueryFilter.h

setValueUsesWildcard:

- (void)setValueUsesWildcard:(BOOL)flag
Parameters
flag

YES causes filter to use a wildcard for the value

Declared In
NNSimpleQueryFilter.h

Last updated: 2010-5-13