| 
WebObjects 5.2.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--com.webobjects.eocontrol.EOQualifier
        |
        +--com.webobjects.eocontrol.EOOrQualifier
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.
evaluateWithObject(Object object), 
Serialized Form| Nested Class Summary | 
| Nested classes inherited from class com.webobjects.eocontrol.EOQualifier | 
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException | 
| Nested classes inherited from class com.webobjects.foundation.NSCoding | 
NSCoding.Support | 
| Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving | 
EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support | 
| Field Summary | 
| Fields inherited from class com.webobjects.eocontrol.EOQualifier | 
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual | 
| Constructor Summary | |
EOOrQualifier(NSArray qualifiers)
Creates and returns a new EOOrQualifier.  | 
|
| Method Summary | |
 void | 
addQualifierKeysToSet(NSMutableSet qualKeys)
Adds the receiver's qualifier keys to qualKeys. | 
 Class | 
classForCoder()
Allows the receiver to substitute a class other than its own (for example, a public superclass) for use during archiving (encoding) by an NSCoder.  | 
static Object | 
decodeObject(NSCoder coder)
(Re)creates an object based on type information and data stored in coder. | 
static Object | 
decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
Conforms to EOKeyValueArchiving.  | 
 void | 
encodeWithCoder(NSCoder coder)
Archives the receiver's type information and data into coder. | 
 void | 
encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
Conforms to EOKeyValueArchiving.  | 
 boolean | 
equals(Object other)
If the receiver and the other object have equals
 qualifiers it returns true; false otherwise. | 
 boolean | 
evaluateWithObject(Object object)
Returns true if object satisfies the qualifier, false otherwise. | 
 NSArray | 
qualifiers()
The qualifiers contained in the receiver.  | 
 EOQualifier | 
qualifierWithBindings(NSDictionary bindings,
                      boolean requiresAll)
Returns a qualifier with the values associated by the bindings.  | 
 String | 
toString()
String containing the description of all the qualifiers contained on receiver.  | 
 void | 
validateKeysWithRootClassDescription(EOClassDescription classDesc)
Ensures that the receiver contains keys and key paths that belong to or originate from classDesc. | 
| Methods inherited from class com.webobjects.eocontrol.EOQualifier | 
allQualifierKeys, allQualifierOperators, bindingKeys, clone, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector | 
| Methods inherited from class java.lang.Object | 
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public EOOrQualifier(NSArray qualifiers)
qualifiers is provided,
  the EOOrQualifier is initialized with the qualifiers in qualifiers.
qualifiers - specifies qualifier| Method Detail | 
public void addQualifierKeysToSet(NSMutableSet qualKeys)
qualKeys. EOOrQualifier
 does this by traversing the tree of qualifiers. Recursively it invokes
 this method until it reaches a leaf qualifier (such as EOKeyValueQualifier)
 which adds its key to the set. 
addQualifierKeysToSet in class EOQualifierqualKeys - the mutable array of qualifier keyspublic Class classForCoder()
getClass method.
classForCoder in interface NSCodingencodeWithCoder(NSCoder coder), 
decodeObject(NSCoder coder), 
NSCoder, 
NSCodingpublic static Object decodeObject(NSCoder coder)
coder.
coderencodeWithCoder(NSCoder coder), 
NSCoder, 
NSCodingpublic static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
unarchiver - the EOKeyValueArchiver object with which to decode
                      the receiver
public void encodeWithCoder(NSCoder coder)
coder.
 The receiver can then be recreated using decodeObject.  Custom
 type information can be used by overriding classForCoder.
encodeWithCoder in interface NSCodingcoder - stores object type information along with an object's datadecodeObject(NSCoder coder), 
classForCoder(), 
NSCoder, 
NSCodingpublic void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
encodeWithKeyValueArchiver in interface EOKeyValueArchivingarchiver - the EOKeyValueArchiver object with which to encode
                  the receiverEOKeyValueArchiverpublic boolean equals(Object other)
other object have equals
 qualifiers it returns true; false otherwise.
equals in class Objecttrue if both the receiver and the other
             object qualifiers are equalpublic boolean evaluateWithObject(Object object)
true if object 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 application
  allows users to construct arbitrary qualifiers (such as through
  a user interface), user 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).
evaluateWithObject in interface EOQualifierEvaluationevaluateWithObject in class EOQualifierobject - specifies object which satisfies the qualifier
true if anObject satisfies the qualifier,
                    false otherwise
public EOQualifier qualifierWithBindings(NSDictionary bindings,
                                         boolean requiresAll)
requiresAll is true, any variable not found in bindings
 throws an exception. If requiresAll is false, missing
 variable values cause the qualifier node to be pruned from the tree.
qualifierWithBindings in class EOQualifierbindings - the input array of valuesrequiresAll - true if all the value are required; otherwise false
public NSArray qualifiers()
public String toString()
toString in class Objectpublic void validateKeysWithRootClassDescription(EOClassDescription classDesc)
classDesc. This method raises an exception
  if an unknown key is found, otherwise it returns null to indicate
  that the keys contained by the qualifier are valid.
validateKeysWithRootClassDescription in class EOQualifierclassDesc - specifies class description
  | 
Last updated Mon Oct 13 15:42:52 PDT 2003. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||