- Inherits from:
- NSObject
- Conforms to:
- NSCoding
- Declared in:
- BDControl/BDQualifierVariable.h
A BDQualifierVariable represents a variable in a BDKeyValueQualifier.
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".
- NSCoding
- -encodeWithCoder:
- -initWithCoder:
- Initialization
- -initWithKey:
- +variableWithKey:
- Accessors
- -key:
+ (id)variableWithKey:(NSString *)key
Creates and returns an autoreleased instance of BDQualifierVariable with the variable key key.
- (id)initWithKey:(NSString *)key
Initializes an instance of BDQualifierVariable with the variable key key.
- (NSString *)key
Returns the key for this variable.