|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.query.conditions.Condition
org.eclipse.emf.query.conditions.ObjectInstanceCondition
public class ObjectInstanceCondition
A Condition that tests whether the argument object instance
equals a given object.
To look for null values in scalar EAttributes, use the
special IS_NULL shared condition instance. Simply initializing
an ObjectInstanceCondition with null will not
work.
| Field Summary | |
|---|---|
static ObjectInstanceCondition |
IS_NULL
A special object-instance condition checking that a value is null. |
| Fields inherited from class org.eclipse.emf.query.conditions.Condition |
|---|
FALSE, TRUE |
| Constructor Summary | |
|---|---|
ObjectInstanceCondition(Object object)
A simple constructor. |
|
| Method Summary | |
|---|---|
protected Object |
getObject()
A getter function for the Object instance used by this
ObjectInstanceCondition |
boolean |
isSatisfied(Object obj)
Tests whether the argument Object instance equals this
ObjectInstanceCondition's own Object
instance. |
| Methods inherited from class org.eclipse.emf.query.conditions.Condition |
|---|
AND, EQUIVALENT, IMPLIES, OR, XOR |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ObjectInstanceCondition IS_NULL
null.
| Constructor Detail |
|---|
public ObjectInstanceCondition(Object object)
object - The given object instance to test equality for| Method Detail |
|---|
public boolean isSatisfied(Object obj)
Object instance equals this
ObjectInstanceCondition's own Object
instance.
isSatisfied in class Conditionobj - an Object to check if it satisfies this Condition
true if the argument Object satisfies this
Condition,false otherwise.Condition.isSatisfied(java.lang.Object)protected final Object getObject()
Object instance used by this
ObjectInstanceCondition
Object the given object instance which we test
equality for
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||