|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wotonomy.control.EOQualifier
net.wotonomy.control.EOKeyValueQualifier
public class EOKeyValueQualifier
EOKeyValueQualifier performs a property-based comparison against a specified value. The comparison is specified in the form of a NSSelector. The selector is expected to take two arguments, the property value on an object and the comparison value, and return a Boolean indicating whether the object is qualified. EOQualifier defines selectors that may be used in creating EOKeyValueQualifiers.
| Field Summary |
|---|
| Fields inherited from class net.wotonomy.control.EOQualifier |
|---|
QualifierOperatorCaseInsensitiveLike, QualifierOperatorContains, QualifierOperatorEqual, QualifierOperatorGreaterThan, QualifierOperatorGreaterThanOrEqualTo, QualifierOperatorLessThan, QualifierOperatorLessThanOrEqualTo, QualifierOperatorLike, QualifierOperatorNotEqual |
| Constructor Summary | |
|---|---|
EOKeyValueQualifier(java.lang.String aKey,
net.wotonomy.foundation.NSSelector aSelector,
java.lang.Object aValue)
Constructor specifying a property key, a selector, and a value for comparison. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
key()
Returns the key for this qualifier. |
net.wotonomy.foundation.NSSelector |
selector()
Returns the selector for this qualifier. |
java.lang.String |
toString()
Returns a string representation of this qualifier. |
java.lang.Object |
value()
Returns the value for this qualifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EOKeyValueQualifier(java.lang.String aKey,
net.wotonomy.foundation.NSSelector aSelector,
java.lang.Object aValue)
| Method Detail |
|---|
public java.lang.String key()
public net.wotonomy.foundation.NSSelector selector()
public java.lang.Object value()
public boolean evaluateWithObject(java.lang.Object anObject)
evaluateWithObject in interface EOQualifierEvaluationevaluateWithObject in class EOQualifierpublic java.lang.String toString()
toString in class EOQualifierpublic void encodeWithKeyValueArchiver(EOKeyValueArchiver arch)
encodeWithKeyValueArchiver in interface EOKeyValueArchivingpublic static java.lang.Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver arch)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||