BDQualifierVariable

Inherits from:
NSObject
Conforms to:
NSCoding
Declared in:
BDControl/BDQualifierVariable.h

Class at a Glance

A BDQualifierVariable represents a variable in a BDKeyValueQualifier.


Class Description

When creating a BDKeyValueQualifier, the value can be an instance of BDQualifierVariable. A BDQualifierVariable contains a key; when the BDKeyValueQualifier is sent -qualifierWithBindings:replacesAllVariables:, the BDQualifierVariable's key is looked up in the given bindings dictionary, and replaced with its value in the bindings dictionary in the resulting qualifier.

When using a qualifier format string to create a qualifier, a BDQualifierVariable is represented by a dollar sign and a key string. For example, @"modelYear >= $year" is a format string that corresponds to a BDKeyValueQualifier whose key is "modelYear", whose comparison selector is BDQualifierOperatorGreaterThanOrEqualTo, and whose value is an instance of BDQualifierVariable with a key of "year".


Adopted Protocols

NSCoding
-encodeWithCoder:
-initWithCoder:

Method Types

Initialization
-initWithKey:
+variableWithKey:
Accessors
-key:

Class Methods

variableWithKey:

+ (id)variableWithKey:(NSString *)key

Creates and returns an autoreleased instance of BDQualifierVariable with the variable key key.


Instance Methods

initWithKey:

- (id)initWithKey:(NSString *)key

Initializes an instance of BDQualifierVariable with the variable key key.

key:

- (NSString *)key

Returns the key for this variable.


Copyright © 2002, 2003, bDistributed.com, Inc. All rights reserved worldwide.