|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.emf.query.conditions.Condition
com.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition
com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition
com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureValueCondition
An EObjectStructuralFeatureCondition
specialization and the
base class of conditions that test for the values held by the various
EStructuralFeature
. This condition can handle both
single-valued and multiple-valued EStructuralFeatures.
It is important to know the following about how evaluation is carried out by
this condition:
EObject
being evaluated will have to satisfy it first before having its
EStructuralFeature
examined.
EObject
passed for the isSatisfied(EObject) method
of this condition does not have the EStructuralFeature
in
question then resultant evaluation of this condition will be
false
.EStructuralFeature
in question in not set -i.e.,
calling eIsSet() method on the EStructuralFeature
returns
false
, no further evaluation is done on the
EStructuralFeature
and the resultant evaluation of this
condition will be false
EStructuralFeature
is
null
, then no further evaluation is done on the
EStructuralFeature
and the resultant evaluation of this
condition will be false
EStructuralFeature
is empty, then no further evaluation is
done on the EStructuralFeature
and the resultant evaluation of
this condition will be false
IEStructuralFeatureValueGetter
,
ConditionPolicy
Field Summary |
Fields inherited from class com.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition |
E_FALSE, E_TRUE |
Fields inherited from class com.ibm.xtools.emf.query.conditions.Condition |
FALSE, TRUE |
Constructor Summary | |
EObjectStructuralFeatureValueCondition(PruneHandler pruneHandler,
EObjectCondition contextEObjectCondition,
org.eclipse.emf.ecore.EStructuralFeature feature,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
boolean resolve,
Condition valueCondition,
ConditionPolicy policy)
The constructor of this EObjectStructuralFeatureValueCondition object, it initializes it with the proper values. |
Method Summary | |
ConditionPolicy |
getPolicy()
Accessor method for the policy argument used in initialization of this condition |
protected EObjectCondition |
getStructuralFeatureCondition()
Accessor method for the the EObjectCondition that is used
for actual testing of EStructuralFeature 's value in order
to determine if it satisfies this condition or not. |
protected boolean |
isResolve()
Accessor method for the resolve argument used in initialization of this condition |
boolean |
isSatisfied(org.eclipse.emf.ecore.EObject eObject)
Checks the value held by the initialization EStructuralFeature to see if it satisfies this condition.
|
Methods inherited from class com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition |
getFeature, getFeatures |
Methods inherited from class com.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition |
AND, EQUIVALENT, getPruneHandler, IMPLIES, isSatisfied, OR, shouldPrune, XOR |
Methods inherited from class com.ibm.xtools.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 |
Constructor Detail |
public EObjectStructuralFeatureValueCondition(PruneHandler pruneHandler, EObjectCondition contextEObjectCondition, org.eclipse.emf.ecore.EStructuralFeature feature, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, boolean resolve, Condition valueCondition, ConditionPolicy policy)
pruneHandler
- The PruneHandler
to usecontextEObjectCondition
- an optional EObjectCondition
to use to check
the context EObject
which is the
EObject
passed to the isSatisfied(EObject)
method for evaluation, which also serves as the context within
which the EStructuralFeature
's value exists
-and hence the name. This contextEObjectCondition is optional
and hence could be null
feature
- The EStructuralFeature
to check its valueeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
to be used
by this EObjectStructuralFeatureValueCondition
to extract the value of the EStructuralFeature
of interest. It serves as a layer of indirection to allow
clients to intervene between this condition object and the way
it extracts the EStructuralFeature
's value so
as to allow for possible messaging of such value before
subjecting it to evaluation.resolve
- A boolean flag to instruct this condition on whether or not it
should resolve a given value before evaluating it or not. This
flag will be passed to the eStructuralFeatureValueGetter since
it is the one responsible for getting EStructuralFeatures
values.valueCondition
- The primary condition to be employed in checking the
EStructuralFeatures valuespolicy
- The ConditionPolicy
to be used to determine how
to interpret the evaluation results as returned by the
valueCondition especially in the case of EStructuralFeatures
that hold collection of values.Method Detail |
public boolean isSatisfied(org.eclipse.emf.ecore.EObject eObject)
EStructuralFeature
to see if it satisfies this condition.
If the eObject passed for evaluation does not have the
EStructuralFeature
in question the result of this
evaluation will be false
.
isSatisfied
in class EObjectStructuralFeatureCondition
EObjectCondition.isSatisfied(org.eclipse.emf.ecore.EObject)
protected final EObjectCondition getStructuralFeatureCondition()
EObjectCondition
that is used
for actual testing of EStructuralFeature
's value in order
to determine if it satisfies this condition or not.
EObjectCondition
used to
evaluate the EStructuralFeature
protected final boolean isResolve()
public final ConditionPolicy getPolicy()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.