PATH  Documentation > WebObjects 4.5 > EOControl Reference

Table of Contents

EOAndQualifier


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


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




Interfaces Implemented


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


Constructors



EOAndQualifier

public EOAndQualifier(NSArray qualifiers)

Creates a new EOAndQualifier. If qualifiers is provided, the new EOAndQualifier is initialized with the EOQualifier objects 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 EOAndQualifier object receives an evaluateWithObject message, it evaluates each of its qualifiers until one of them returns false. If any of its qualifiers returns false, the EOAndQualifier object returns false immediately. If all of its qualifiers return true, the object returns true. 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 properly respond to errors (for example, by displaying a panel saying that the user typed a poorly formed qualifier).

qualifiers

public NSArray qualifiers()

Returns the receiver's qualifiers.


Table of Contents