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

Table of Contents

EOOrQualifier


Inherits from:
(com.apple.client.eocontrol) EOQualifier : Object
(com.apple.yellow.eocontrol) EOQualifier : NSObject
Implements:
EOQualifierEvaluation
(com.apple.client.eocontrol only) NSCoding
Package:
com.apple.client.eocontrol
com.apple.yellow.eocontrol


Class Description


EOOrQualifier is a subclass of EOQualifier that contains multiple qualifiers. EOOrQualifier implements the EOQualifierEvaluation interface, which defines the method evaluateWithObject for in-memory evaluation. When an EOOrQualifier object receives an evaluateWithObject message, it evaluates each of its qualifiers until one of them returns true. If one of its qualifiers returns true, the EOOrQualifier object returns true immediately. If all of its qualifiers return false, the EOOrQualifier object returns false.




Interfaces Implemented


EOQualifierEvaluation
evaluateWithObject
NSCoding (com.apple.client.eocontrol only)
classForCoder
encodeWithCoder


Constructors



EOOrQualifier

public EOOrQualifier(NSArray qualifiers)

Creates and returns a new EOOrQualifier. If qualifiers is provided, the EOOrQualifier is initialized with the qualifiers in qualifiers.


Instance Methods



evaluateWithObject:

(com.apple.client.eocontrol) public boolean evaluateWithObject(EOKeyValueCodingAdditions anObject);

(com.apple.yellow.eocontrol) public boolean evaluateWithObject(Object anObject)

Returns true if anObject satisfies the qualifier, false otherwise. When an EOOrQualifier object receives an evaluateWithObject: message, it evaluates each of its qualifiers until one of them returns true. If any of its qualifiers returns true, the EOOrQualifier object returns true immediately. If all of its qualifiers return false, the EOOrQualifier object returns false. This method can throw one of several possible exceptions if an error occurs. If your application allows users to construct arbitrary qualifiers (such as through a user interface), you may want to write code to catch any exceptions and respond to errors (for example, by displaying a panel saying that the user typed a poorly formed qualifier).

qualifiers

NSArray qualifiers()

Returns the receiver's qualifiers.


Table of Contents