PATH |
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)
Static Methods
decodeObject
public static Object decodeObject(NSCoder coder)
decodeWithKeyValueUnarchiver
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Instance Methods
addQualifierKeysToSet
public void addQualifierKeysToSet(NSMutableSet aSet)
classForCoder
public Class classForCoder()
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
encodeWithKeyValueArchiver
public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
evaluateWithObject
public boolean evaluateWithObject(NSKeyValueCodingAdditions anObject)
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()
qualifierWithBindings
public EOQualifier qualifierWithBindings( NSDictionary, boolean)
toString
public String toString()
validateKeysWithRootClassDescription
public void validateKeysWithRootClassDescription( EOClassDescription classDesc)
© 2001 Apple Computer, Inc. (Last Published April 19, 2001)