Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOQualifierComparison


(informal protocol)
Declared in:
EOControl/EOQualifier.h



Protocol Description


The EOQualifierComparison informal protocol defines methods for comparing values. These methods are used for evaluating qualifiers in memory.


Note: This interface doesn't exist in the Yellow Box package, com.apple.yellow.eocontrol

Though declared for NSObject, most of these methods work properly only with value classes: NSString, NSDate, NSNumber, NSDecimalNumber, and EONull.



Method Types


Testing value objects
- doesContain:
- isEqualTo:
- isGreaterThan:
- isGreaterThan:
- isLessThan:
- isLessThanOrEqualTo:
- isLike:
- isCaseInsensitiveLike:
- isNotEqualTo:


Instance Methods



doesContain:

- (BOOL)doesContain:(id)anObject

Returns YES if the receiver contains anObject, NO if it doesn't. NSObject's implementation of this method returns YES only if the receiver is a kind of NSArray and contains anObject. In all other cases it returns NO.

isCaseInsensitiveLike:

- (BOOL)isCaseInsensitiveLike:(NSString *)anObject

Returns YES if the receiver is a case-insensitive match for anObject, NO if it isn't. See "Using Wildcards and the like Operator" on page 266 for the wildcard characters allowed.

isEqualTo:

- (BOOL)isEqualTo:(id)anObject

Returns YES if the receiver is equal to anObject, NO if it isn't. NSObject's implementation invokes isEqual: and returns the result.

isGreaterThan:

- (BOOL)isGreaterThan:(id)anObject

Returns YES if the receiver is greater than anObject, NO if it isn't. NSObject's implementation invokes compare: and returns YES if the result is NSOrderedDescending.

isGreaterThanOrEqualTo:

- (BOOL)isGreaterThanOrEqualTo:(id)anObject

Returns YES if the receiver is greater than or equal to anObject, NO if it isn't. NSObject's implementation invokes compare: and returns YES if the result is NSOrderedAscending.

isLessThan:

- (BOOL)isLessThan:(id)anObject

Returns YES if the receiver is less than anObject, NO if it isn't. NSObject's implementation invokes compare: and returns YES if the result is NSOrderedAscending.

isLessThanOrEqualTo:

- (BOOL)isLessThanOrEqualTo:(id)anObject

Returns YES if the receiver is less than or equal to anObject, NO if it isn't. NSObject's implementation invokes compare: and returns YES if the result is NSOrderedAscending or NSOrderedSame.

isLike:

- (BOOL)isLike:(NSString *)aString

Returns YES if the receiver matches aString according to the semantics of the SQL like comparison operator, NO if it doesn't. See "Using Wildcards and the like Operator" on page 266 for the wildcard characters allowed. NSObject's implementation returns NO; NSString's performs a proper comparison.

isNotEqualTo:

- (BOOL)isNotEqualTo:(id)anObject

Returns YES if the receiver is not equal to anObject, NO if it is. NSObject's implementation invokes isEqual:, inverts the result, and returns it.


Table of Contents