|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.query.conditions.Condition org.eclipse.emf.query.conditions.eobjects.EObjectCondition org.eclipse.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition org.eclipse.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureValueCondition org.eclipse.emf.query.conditions.eobjects.structuralfeatures.EObjectAttributeValueCondition
public class EObjectAttributeValueCondition
An EObjectStructuralFeatureValueCondition
subclass used to
handle evaluation of the value held by an EAttribute
Field Summary |
---|
Fields inherited from class org.eclipse.emf.query.conditions.eobjects.EObjectCondition |
---|
E_FALSE, E_TRUE |
Fields inherited from class org.eclipse.emf.query.conditions.Condition |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
EObjectAttributeValueCondition(EAttribute attribute,
Condition valueCondition)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(EAttribute attribute,
Condition valueCondition,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
boolean resolve)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
|
EObjectAttributeValueCondition(PruneHandler pruneHandler,
EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
boolean resolve)
A constructor that initializes this EObjectAttributeValueCondition with the passed values. |
Method Summary | |
---|---|
protected EAttribute |
getAttribute()
Accessor method for the EAttribute to whose value is to be
used in the evaluation of this condition |
protected List<EAttribute> |
getFeatures(EClass eClass)
Overrides the parent to return the list of all EAttributes only as opposed to the entire all EStructuralFeatures. |
Methods inherited from class org.eclipse.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureValueCondition |
---|
getPolicy, getStructuralFeatureCondition, isResolve, isSatisfied |
Methods inherited from class org.eclipse.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition |
---|
getFeature |
Methods inherited from class org.eclipse.emf.query.conditions.eobjects.EObjectCondition |
---|
AND, EQUIVALENT, getPruneHandler, IMPLIES, isSatisfied, OR, shouldPrune, XOR |
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 |
Constructor Detail |
---|
public EObjectAttributeValueCondition(EAttribute attribute, Condition valueCondition, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
EObjectAttributeValueCondition
with the passed values. It
defaults to using ConditionPolicy.ANY for the
ConditionPolicy
policy, the PruneHandler.NEVER for the
PruneHandler
and the sets resolving to true
attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valueeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectpublic EObjectAttributeValueCondition(EAttribute attribute, Condition valueCondition)
A constructor that initializes this
EObjectAttributeValueCondition
with the passed values. It
defaults to using ConditionPolicy.ANY for the
ConditionPolicy
policy, the PruneHandler.NEVER for the
PruneHandler
and the sets resolving to true
The default EStructuralFeatureValueGetter
will be used when accessing the
value of the EObject's attribute.
attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valuepublic EObjectAttributeValueCondition(EAttribute attribute, Condition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
EObjectAttributeValueCondition
with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler
and the sets resolving to true
attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valuepolicy
- The ConditionPolicy
to useeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectpublic EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition, EAttribute attribute, Condition valueCondition, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
EObjectAttributeValueCondition
with the passed values. It
defaults to using ConditionPolicy.ANY for the
ConditionPolicy
policy, the PruneHandler.NEVER for the
PruneHandler
and the sets resolving to true
contextEObjectCondition
- An optional -could be null
- EObjectCondition
to be applied on the eObject argument of the
isSatisified(EObject) method. If this contextEObjectCondition
is supplied, then only those EObjects who satisfy it will have
the values of their EAttribute
examined
further, otherwise the resultant evaluation of this
EObjectAttributeValueCondition
will be false.attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valueeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectpublic EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition, EAttribute attribute, Condition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
EObjectAttributeValueCondition
with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler
and the sets resolving to true
contextEObjectCondition
- An optional -- could be null
- EObjectCondition
to be applied on the eObject argument of the
isSatisified(EObject) method. If this contextEObjectCondition
is supplied, then only those EObjects who satisfy it will have
the values of their EAttribute
examined
further, otherwise the resultant evaluation of this
EObjectAttributeValueCondition
will be false.attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valuepolicy
- The ConditionPolicy
to useeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectpublic EObjectAttributeValueCondition(EObjectCondition contextEObjectCondition, EAttribute attribute, Condition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, boolean resolve)
EObjectAttributeValueCondition
with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler
contextEObjectCondition
- An optional -- could be null
- EObjectCondition
to be applied on the eObject argument of the
isSatisified(EObject) method. If this contextEObjectCondition
is supplied, then only those EObjects who satisfy it will have
the values of their EAttribute
examined
further, otherwise the resultant evaluation of this
EObjectAttributeValueCondition
will be false.attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valuepolicy
- The ConditionPolicy
to useeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectresolve
- The flag to indicate whether to resolve or not the values of
the EAttribute
before subjecting them to
evaluation by this condition.public EObjectAttributeValueCondition(PruneHandler pruneHandler, EObjectCondition contextEObjectCondition, EAttribute attribute, Condition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, boolean resolve)
EObjectAttributeValueCondition
with the passed values.
pruneHandler
- The PruneHandler
to use.contextEObjectCondition
- An optional -- could be null
- EObjectCondition
to be applied on the eObject argument of the
isSatisified(EObject) method. If this contextEObjectCondition
is supplied, then only those EObjects who satisfy it will have
the values of their EAttribute
examined
further, otherwise the resultant evaluation of this
EObjectAttributeValueCondition
will be false.attribute
- The EAttribute
whose value is to be testedvalueCondition
- the Condition
object to use for evaluating the
EAttribute
valuepolicy
- The ConditionPolicy
to useeStructuralFeatureValueGetter
- The IEStructuralFeatureValueGetter
used to
extract the value of the EAttribute
from a
given context objectresolve
- The flag to indicate whether to resolve or not the values of
the EAttribute
before subjecting them to
evaluation by this condition.Method Detail |
---|
protected EAttribute getAttribute()
EAttribute
to whose value is to be
used in the evaluation of this condition
EAttribute
used in initialization
of this conditionprotected final List<EAttribute> getFeatures(EClass eClass)
getFeatures
in class EObjectStructuralFeatureCondition
eClass
- the Eclass from which to get all the EStructuralFeatures to be
used for testing and evaluation of this condition object
EObjectStructuralFeatureCondition.getFeatures(org.eclipse.emf.ecore.EClass)
|
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 |