public class ERXKeyValueQualifier extends EOKeyValueQualifier implements IERXChainableQualifier
EOQualifier.Comparison, EOQualifier.ComparisonSupport, EOQualifier.QualifierVariableSubstitutionException
NSCoding._BigDecimalSupport, NSCoding._BigIntegerSupport, NSCoding._BooleanSupport, NSCoding._ByteSupport, NSCoding._CharacterSupport, NSCoding._DateSupport, NSCoding._DoubleSupport, NSCoding._FloatSupport, NSCoding._IntegerSupport, NSCoding._LongSupport, NSCoding._NumberSupport, NSCoding._ShortSupport, NSCoding._StringSupport, NSCoding.Support
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
_CLASS, _key, _lowercaseCache, _selector, _value
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual
Constructor and Description |
---|
ERXKeyValueQualifier(String key,
NSSelector selector,
Object value) |
Modifier and Type | Method and Description |
---|---|
ERXAndQualifier |
and(EOQualifier... qualifiers)
Returns a new qualifier that represents this qualifier and'd to the given
list of qualifiers.
|
boolean |
evaluateWithObject(Object object)
Overridden to handle case of in-memory evaluation of QualifierOperatorContains selector and a keyPath that has multiple toMany and/or manyToMany-flattened relationships resulting in arrays of arrays rather than
an array of discrete objects.
|
void |
filter(NSMutableArray<?> array)
Equivalent to EOQualifier.filterArrayWithQualifier(NSMutableArray,
EOQualfier)
|
<T> NSArray<T> |
filtered(NSArray<T> array)
Equivalent to EOQualifier.filteredArrayWithQualifier(NSArray,
EOQualifier)
|
<T> T |
first(NSArray<T> array)
Equivalent to EOQualifier.first(NSMutableArray, EOQualfier)
|
ERXNotQualifier |
not()
Returns a new qualifier that represents this qualifier not'd.
|
<T> T |
one(NSArray<T> array)
Equivalent to EOQualifier.one(NSMutableArray, EOQualfier)
|
ERXOrQualifier |
or(EOQualifier... qualifiers)
Returns a new qualifier that represents this qualifier or'd with the
given list of qualifiers.
|
<T> T |
requiredOne(NSArray<T> array)
Equivalent to EOQualifier.requiredOne(NSArray, EOQualfier)
|
_accept, addQualifierKeysToSet, classForCoder, decodeObject, decodeWithKeyValueUnarchiver, encodeWithCoder, encodeWithKeyValueArchiver, equals, key, qualifierWithBindings, selector, toString, validateKeysWithRootClassDescription, value
_isEmpty, allQualifierKeys, allQualifierOperators, bindingKeys, clone, filterArrayWithQualifier, filteredArrayWithQualifier, keyPathForBindingKey, operatorSelectorForSelectorNamed, operatorSelectorForString, qualifierToMatchAllValues, qualifierToMatchAnyValue, qualifierWithQualifierFormat, relationalQualifierOperators, stringForOperatorSelector
public ERXKeyValueQualifier(String key, NSSelector selector, Object value)
public ERXAndQualifier and(EOQualifier... qualifiers)
IERXChainableQualifier
and
in interface IERXChainableQualifier
qualifiers
- the qualifiers to and with this qualifierpublic ERXNotQualifier not()
IERXChainableQualifier
not
in interface IERXChainableQualifier
public ERXOrQualifier or(EOQualifier... qualifiers)
IERXChainableQualifier
or
in interface IERXChainableQualifier
qualifiers
- the qualifiers to or with this qualifierpublic void filter(NSMutableArray<?> array)
IERXChainableQualifier
filter
in interface IERXChainableQualifier
array
- the array to filter (in place)public <T> NSArray<T> filtered(NSArray<T> array)
IERXChainableQualifier
filtered
in interface IERXChainableQualifier
T
- the type of the arrayarray
- the array to filterpublic <T> T first(NSArray<T> array)
IERXChainableQualifier
first
in interface IERXChainableQualifier
T
- the type of the arrayarray
- the array to filter (in place)public <T> T one(NSArray<T> array)
IERXChainableQualifier
one
in interface IERXChainableQualifier
T
- the type of the arrayarray
- the array to filter (in place)public <T> T requiredOne(NSArray<T> array)
IERXChainableQualifier
requiredOne
in interface IERXChainableQualifier
T
- the type of the arrayarray
- the array to filter (in place)public boolean evaluateWithObject(Object object)
er.extensions.ERXKeyValueQualifier.Contains.flatten
to false
evaluateWithObject
in interface EOQualifierEvaluation
evaluateWithObject
in class EOKeyValueQualifier
Copyright © 2002 – 2024 Project Wonder.