org.eclipse.emf.query.conditions.eobjects
Class EObjectInstanceCondition
java.lang.Object
org.eclipse.emf.query.conditions.Condition
org.eclipse.emf.query.conditions.eobjects.EObjectCondition
org.eclipse.emf.query.conditions.eobjects.EObjectTypeRelationCondition
org.eclipse.emf.query.conditions.eobjects.EObjectInstanceCondition
- public class EObjectInstanceCondition
- extends EObjectTypeRelationCondition
A EObjectCondition
that tests whether the argument eObject
instance equals a given eObject.
Constructor Summary |
EObjectInstanceCondition(org.eclipse.emf.ecore.EObject eObject)
A simple constructor that allows callers to initialize the
EObject instance to use for equality testing by this
EObjectInstanceCondition . |
EObjectInstanceCondition(org.eclipse.emf.ecore.EObject eObject,
PruneHandler pruneHandler)
A constructor that allows callers to initialize this
EObjectInstanceCondition |
Method Summary |
protected org.eclipse.emf.ecore.EObject |
getEObject()
A getter function for the EObject instance used by this
EObjectInstanceCondition |
boolean |
isSatisfied(org.eclipse.emf.ecore.EObject eObj)
Tests whether the argument EObject instance equals this
EObjectInstanceCondition 's own EObject
instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EObjectInstanceCondition
public EObjectInstanceCondition(org.eclipse.emf.ecore.EObject eObject)
- A simple constructor that allows callers to initialize the
EObject
instance to use for equality testing by this
EObjectInstanceCondition
. This constructor uses
PruneHandler.NEVER
- Parameters:
eObject
- the EObject
to use in equality testing
EObjectInstanceCondition
public EObjectInstanceCondition(org.eclipse.emf.ecore.EObject eObject,
PruneHandler pruneHandler)
- A constructor that allows callers to initialize this
EObjectInstanceCondition
- Parameters:
eObject
- the EObject
to use in equality testingpruneHandler
- the PruneHandler
to use
isSatisfied
public boolean isSatisfied(org.eclipse.emf.ecore.EObject eObj)
- Tests whether the argument
EObject
instance equals this
EObjectInstanceCondition
's own EObject
instance.
- Overrides:
isSatisfied
in class EObjectTypeRelationCondition
- See Also:
EObjectCondition.isSatisfied(org.eclipse.emf.ecore.EObject)
getEObject
protected final org.eclipse.emf.ecore.EObject getEObject()
- A getter function for the
EObject
instance used by this
EObjectInstanceCondition
- Returns:
EObject
the given object instance which we test
equality for