com.ibm.xtools.emf.query.conditions.eobjects
Class EObjectConditionAdapter
java.lang.Object
com.ibm.xtools.emf.query.conditions.Condition
com.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition
com.ibm.xtools.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(org.eclipse.emf.ecore.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
- See Also:
Condition.isSatisfied(java.lang.Object)
isSatisfied
public boolean isSatisfied(org.eclipse.emf.ecore.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)
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.