IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures
Class EObjectReferenceValueCondition

java.lang.Object
  extended bycom.ibm.xtools.emf.query.conditions.Condition
      extended bycom.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition
          extended bycom.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition
              extended bycom.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureValueCondition
                  extended bycom.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectReferenceValueCondition

public class EObjectReferenceValueCondition
extends EObjectStructuralFeatureValueCondition

An EObjectStructuralFeatureValueCondition subclass used to handle evaluation of the value held by an EReference


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
EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition, org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition, org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, boolean resolve)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition, org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
EObjectReferenceValueCondition(org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
EObjectReferenceValueCondition(org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
EObjectReferenceValueCondition(PruneHandler pruneHandler, EObjectCondition contextEObjectCondition, org.eclipse.emf.ecore.EReference reference, EObjectCondition valueCondition, ConditionPolicy policy, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, boolean resolve)
          A constructor that initializes this EObjectReferenceValueCondition with the passed values.
 
Method Summary
protected  List getFeatures(org.eclipse.emf.ecore.EClass eClass)
          Overrides the parent to return the list of all EReferences only as opposed to the entire all EStructuralFeatures.
protected  org.eclipse.emf.ecore.EReference getReference()
          Accessor method for the EReference to whose value is to be used in the evaluation of this condition
 
Methods inherited from class com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureValueCondition
getPolicy, getStructuralFeatureCondition, isResolve, isSatisfied
 
Methods inherited from class com.ibm.xtools.emf.query.conditions.eobjects.structuralfeatures.EObjectStructuralFeatureCondition
getFeature
 
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

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectReferenceValueCondition 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:
reference - The EReference whose value is to be tested
valueCondition - the EObjectCondition object to use for evaluating the EReference value
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      ConditionPolicy policy,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectReferenceValueCondition with the passed values. It defaults to using the PruneHandler.NEVER for the PruneHandler and the sets resolving to true

Parameters:
reference - The EReference whose value is to be tested
valueCondition - the EObjectCondition object to use for evaluating the EReference value
policy - The ConditionPolicy to use
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition,
                                      org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectReferenceValueCondition 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 EReference examined further, otherwise the resultant evaluation of this EObjectReferenceValueCondition will be false.
reference - The EReference whose value is to be tested
valueCondition - The EObjectCondition object to use for evaluating the EReference value
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition,
                                      org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      ConditionPolicy policy,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor that initializes this EObjectReferenceValueCondition 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 EReference examined further, otherwise the resultant evaluation of this EObjectReferenceValueCondition will be false.
reference - The EReference whose value is to be tested
valueCondition - The EObjectCondition object to use for evaluating the EReference value
policy - The ConditionPolicy to use
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(EObjectCondition contextEObjectCondition,
                                      org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      ConditionPolicy policy,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
                                      boolean resolve)
A constructor that initializes this EObjectReferenceValueCondition 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 EReference examined further, otherwise the resultant evaluation of this EObjectReferenceValueCondition will be false.
reference - The EReference whose value is to be tested
valueCondition - The EObjectCondition object to use for evaluating the EReference value
policy - The ConditionPolicy to use
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object
resolve - The flag to indicate whether to resolve or not the values of the EReference before subjecting them to evaluation by this condition.

EObjectReferenceValueCondition

public EObjectReferenceValueCondition(PruneHandler pruneHandler,
                                      EObjectCondition contextEObjectCondition,
                                      org.eclipse.emf.ecore.EReference reference,
                                      EObjectCondition valueCondition,
                                      ConditionPolicy policy,
                                      IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
                                      boolean resolve)
A constructor that initializes this EObjectReferenceValueCondition 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 EReference examined further, otherwise the resultant evaluation of this EObjectReferenceValueCondition will be false.
reference - The EReference whose value is to be tested
valueCondition - The EObjectCondition object to use for evaluating the EReference value
policy - The ConditionPolicy to use
eStructuralFeatureValueGetter - The IEStructuralFeatureValueGetter used to extract the value of the EReference from a given context object
resolve - The flag to indicate whether to resolve or not the values of the EReference before subjecting them to evaluation by this condition.
Method Detail

getReference

protected org.eclipse.emf.ecore.EReference getReference()
Accessor method for the EReference to whose value is to be used in the evaluation of this condition

Returns:
EReference The EReference used in initialization of this condition

getFeatures

protected final List getFeatures(org.eclipse.emf.ecore.EClass eClass)
Overrides the parent to return the list of all EReferences 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)

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.