PATH Documentation > WebObjects

Table of Contents

EOAndQualifier


Inherits from:
EOQualifier
Implements:
NSCoding,
EOKeyValueArchiving
Package:
com.webobjects.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
classForCoder
decodeObject
encodeWithCoder
EOKeyValueArchiving
decodeWithKeyValueUnarchiver
encodeWithKeyValueArchiver


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.


Static Methods



decodeObject

public static Object decodeObject(NSCoder coder)

Conformance to NSCoding.

decodeWithKeyValueUnarchiver

public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)

Conformance to EOKeyValueArchiving.


Instance Methods



addQualifierKeysToSet

public void addQualifierKeysToSet(NSMutableSet aSet)

Description forthcoming.

classForCoder

public Class classForCoder()

Conformance to NSCoding.

encodeWithCoder

public void encodeWithCoder(NSCoder coder)

Conformance to NSCoding.

encodeWithKeyValueArchiver

public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)

Conformance to EOKeyValueArchiving.

evaluateWithObject

public boolean evaluateWithObject(NSKeyValueCodingAdditions 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.

qualifierWithBindings

public EOQualifier qualifierWithBindings( NSDictionary, boolean)

Description forthcoming.

toString

public String toString()

Returns a String representation of the receiver.

validateKeysWithRootClassDescription

public void validateKeysWithRootClassDescription( EOClassDescription classDesc)

Description forthcoming.

© 2001 Apple Computer, Inc. (Last Published April 19, 2001)


Table of Contents