|
 |
|
|
org.eclipse.emf.query.conditions.eobjects.structuralfeatures
Class EObjectAttributeValueCondition
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
- extends
EObjectStructuralFeatureValueCondition
An EObjectStructuralFeatureValueCondition subclass used to
handle evaluation of the value held by an EAttribute
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 java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
EObjectAttributeValueCondition
public EObjectAttributeValueCondition(
EAttribute attribute,
Condition valueCondition,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
- 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
-
Parameters:
-
attribute - The EAttribute whose value is to be tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object
EObjectAttributeValueCondition
public 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.
-
Parameters:
-
attribute - The EAttribute whose value is to be tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value
EObjectAttributeValueCondition
public EObjectAttributeValueCondition(
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
- A constructor that initializes this
EObjectAttributeValueCondition with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler and the sets resolving to true
-
Parameters:
-
attribute - The EAttribute whose value is to be tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
policy - The ConditionPolicy to use -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object
EObjectAttributeValueCondition
public EObjectAttributeValueCondition(
EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
- 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
-
Parameters:
-
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 tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object
EObjectAttributeValueCondition
public EObjectAttributeValueCondition(
EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
- A constructor that initializes this
EObjectAttributeValueCondition with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler and the sets resolving to true
-
Parameters:
-
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 tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
policy - The ConditionPolicy to use -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object
EObjectAttributeValueCondition
public EObjectAttributeValueCondition(
EObjectCondition contextEObjectCondition,
EAttribute attribute,
Condition valueCondition,
ConditionPolicy policy,
IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
boolean resolve)
- A constructor that initializes this
EObjectAttributeValueCondition with the passed values. It
defaults to using the PruneHandler.NEVER for the
PruneHandler
-
Parameters:
-
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 tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
policy - The ConditionPolicy to use -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object -
resolve - The flag to indicate whether to resolve or not the values of
the EAttribute before subjecting them to
evaluation by this condition.
EObjectAttributeValueCondition
public 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.
-
Parameters:
-
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 tested -
valueCondition - the Condition object to use for evaluating the
EAttribute value -
policy - The ConditionPolicy to use -
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to
extract the value of the EAttribute from a
given context object -
resolve - The flag to indicate whether to resolve or not the values of
the EAttribute before subjecting them to
evaluation by this condition.
getAttribute
protected
EAttribute getAttribute()
- Accessor method for the
EAttribute to whose value is to be
used in the evaluation of this condition
-
-
Returns:
- EAttribute The
EAttribute used in initialization
of this condition
getFeatures
protected final
List<
EAttribute> getFeatures(
EClass eClass)
- Overrides the parent to return the list of all EAttributes only as
opposed to the entire all EStructuralFeatures.
-
-
Overrides:
-
getFeatures
in class
EObjectStructuralFeatureCondition
-
-
Parameters:
-
eClass - the Eclass from which to get all the EStructuralFeatures to be
used for testing and evaluation of this condition object
-
Returns:
- List a list of the all the EStructuralFeatures from the argument
EClass and are consequently to be used for testing and evaluation
of this condition object
-
See Also:
-
EObjectStructuralFeatureCondition.getFeatures(org.eclipse.emf.ecore.EClass)
|
|
|