org.eclipse.emf.query.conditions.eobjects
Class EObjectConditionAdapter
java.lang.Object
org.eclipse.emf.query.conditions.Condition
org.eclipse.emf.query.conditions.eobjects.EObjectCondition
org.eclipse.emf.query.conditions.eobjects.EObjectConditionAdapter
public class EObjectConditionAdapter
- extends EObjectCondition
This is an adapter class that takes in a Condition object and
wraps it in order to adapt it to an EObjectCondition.
Evaluation is forwarded to the adapted Condition object, while
the PruneHandler
used defaults to PruneHandler.NEVER
|
Method Summary |
boolean |
isSatisfied(EObject eObject)
The implementation of this function simply forwards the actual evaluation
to the adapted Condition. |
boolean |
isSatisfied(Object object)
Overrides the parent's implementation by simply forwarding the actual
evaluation to the adapted Condition regardless whether or
not the argument object conforms to EObject. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EObjectConditionAdapter
public EObjectConditionAdapter(Condition condition)
- A simple constructor that takes in the
Condition object to
adapt. It uses PruneHandler.NEVER as its prune-handler.
- Parameters:
condition - The Condition object to be adapted
EObjectConditionAdapter
public EObjectConditionAdapter(Condition condition,
PruneHandler pruneHandler)
- A constructor that takes in the
Condition object to adapt,
and the PruneHandler to use.
- Parameters:
condition - The Condition object to be adaptedpruneHandler - the PruneHandler to consult for pruning
isSatisfied
public boolean isSatisfied(Object object)
- Overrides the parent's implementation by simply forwarding the actual
evaluation to the adapted
Condition regardless whether or
not the argument object conforms to EObject.
- Overrides:
isSatisfied in class EObjectCondition
- Parameters:
object - an Object to check if it satisfies this Condition
- Returns:
true if the argument Object satisfies this
Condition,false otherwise.- See Also:
Condition.isSatisfied(java.lang.Object)
isSatisfied
public boolean isSatisfied(EObject eObject)
- The implementation of this function simply forwards the actual evaluation
to the adapted
Condition.
- Specified by:
isSatisfied in class EObjectCondition
- Parameters:
eObject - the EObject to check
- Returns:
- boolean
true if the argument eObject satisfies
this EObjectCondition - See Also:
EObjectCondition.isSatisfied(org.eclipse.emf.ecore.EObject)