WebObjects 5.4.2

Class NonNullQualifier

  extended by com.webobjects.eocontrol.EOQualifier
      extended by com.webobjects.directtoweb.NonNullQualifier
All Implemented Interfaces:
EOKeyValueArchiving, EOQualifierEvaluation, Serializable

public class NonNullQualifier
extends EOQualifier
implements EOKeyValueArchiving

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class com.webobjects.eocontrol.EOQualifier
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException
Nested classes/interfaces inherited from interface 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
NonNullQualifier(String key)
Method Summary
 void addQualifierKeysToSet(NSMutableSet qualKeys)
          Adds the receiver's qualifier keys to qualifierKeys.
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)
 String description()
 void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
          Asks the receiver to archive its state into the EOKeyValueArchiver archiver.
 boolean evaluateWithObject(EOKeyValueCodingAdditions o)
 EOQualifier qualifierWithBindings(NSDictionary bindings, boolean requiresAll)
          Returns a new qualifier substituting all variables with values found in bindings.
 String toString()
 void validateKeysWithRootClassDescription(EOClassDescription classDesc)
          Ensures that the receiver contains keys and key paths that belong to or originate from classDescription.
Methods inherited from class com.webobjects.eocontrol.EOQualifier
allQualifierKeys, allQualifierOperators, bindingKeys, clone, evaluateWithObject, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public NonNullQualifier(String key)
Method Detail


public void encodeWithKeyValueArchiver(EOKeyValueArchiver archiver)
Description copied from interface: EOKeyValueArchiving
Asks the receiver to archive its state into the EOKeyValueArchiver archiver.

Specified by:
encodeWithKeyValueArchiver in interface EOKeyValueArchiving
archiver - the EOKeyValueArchiver
See Also:


public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver unarchiver)


public boolean evaluateWithObject(EOKeyValueCodingAdditions o)


public String description()


public String toString()
toString in class Object


public EOQualifier qualifierWithBindings(NSDictionary bindings,
                                         boolean requiresAll)
Description copied from class: EOQualifier
Returns a new qualifier substituting all variables with values found in bindings. If 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.

Specified by:
qualifierWithBindings in class EOQualifier
bindings - bindings dictionary
requiresAll - Value indicating if all the criteria are required
new qualifier substituting all variables with values in bindings


public void validateKeysWithRootClassDescription(EOClassDescription classDesc)
Description copied from class: EOQualifier
Ensures that the receiver contains keys and key paths that belong to or originate from classDescription. 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.

Specified by:
validateKeysWithRootClassDescription in class EOQualifier
classDesc - The EOClassDescription to be checked with the receiver


public void addQualifierKeysToSet(NSMutableSet qualKeys)
Description copied from class: EOQualifier
Adds the receiver's qualifier keys to qualifierKeys. The subclasses in the EOControl framework do this by traversing the tree of qualifiers. Node qualifiers (such as EOAndQualifier) recursively invoke this method until they reach a leaf qualifier (such as EOKeyValueQualifier) which adds its key to the set.

Subclasses of EOQualifier must implement this method.

Specified by:
addQualifierKeysToSet in class EOQualifier
qualKeys - The mutable array of qualifier keys

Last updated June 2008

Copyright © 2000-2008 Apple Inc.