net.wotonomy.control
Class EOOrQualifier

java.lang.Object
  extended by net.wotonomy.control.EOQualifier
      extended by net.wotonomy.control.EOOrQualifier
All Implemented Interfaces:
EOKeyValueArchiving, EOQualifierEvaluation

public class EOOrQualifier
extends EOQualifier
implements EOKeyValueArchiving, EOQualifierEvaluation

EOOrQualifier contains other EOQualifiers, evaluating as true if any of the contained qualifiers evaluate as true.

Version:
$Revision: 894 $
Author:
michael@mpowers.net, yjcheung@intersectsoft.com, $Author: cgruber $

Field Summary
 
Fields inherited from class net.wotonomy.control.EOQualifier
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual
 
Constructor Summary
EOOrQualifier(java.util.List aQualifierList)
           
 
Method Summary
 void addQualifier(EOQualifier qualifier)
          Add a new qualifier to the list.
static java.lang.Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver arch)
           
 void encodeWithKeyValueArchiver(EOKeyValueArchiver arch)
           
 boolean evaluateWithObject(java.lang.Object anObject)
          Evaluates this qualifier for the specified object, and returns whether the object is qualified.
 net.wotonomy.foundation.NSArray qualifiers()
          Returns a List of qualifiers contained by this qualifier.
 java.lang.String toString()
          Returns a string representation of this qualifier.
 
Methods inherited from class net.wotonomy.control.EOQualifier
addQualifierKeysToSet, allQualifierKeys, allQualifierOperators, bindingKeys, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithBindings, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector, validateKeysWithRootClassDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOOrQualifier

public EOOrQualifier(java.util.List aQualifierList)
Method Detail

qualifiers

public net.wotonomy.foundation.NSArray qualifiers()
Returns a List of qualifiers contained by this qualifier.


addQualifier

public void addQualifier(EOQualifier qualifier)
Add a new qualifier to the list.


evaluateWithObject

public boolean evaluateWithObject(java.lang.Object anObject)
Evaluates this qualifier for the specified object, and returns whether the object is qualified. selector() is invoked on the value for key() on the specified object, with value() as the parameter. Note: this has a lazy "or" implementation. Ex. Qal1 or Qal2. If Qal1 is evaluated to be true, then it returns true without further evaluate Qal2.

Specified by:
evaluateWithObject in interface EOQualifierEvaluation
Overrides:
evaluateWithObject in class EOQualifier

toString

public java.lang.String toString()
Returns a string representation of this qualifier.

Overrides:
toString in class EOQualifier

decodeWithKeyValueUnarchiver

public static java.lang.Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver arch)

encodeWithKeyValueArchiver

public void encodeWithKeyValueArchiver(EOKeyValueArchiver arch)
Specified by:
encodeWithKeyValueArchiver in interface EOKeyValueArchiving


Copyright © 2006 null. All Rights Reserved.