IBM Rational Software Modeler
Release 6.0

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

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.EObjectReferencerCondition

public class EObjectReferencerCondition
extends EObjectCondition

An EObjectCondition subclass that tests if a given EObject references another EObject


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
EObjectReferencerCondition(EObject referencedEObject, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
          A constructor, initializes this EObjectReferencerCondition with the passed arguments.
EObjectReferencerCondition(EObject referencedEObject, IEStructuralFeatureValueGetter eStructuralFeatureValueGetter, PruneHandler pruneHandler)
          * A constructor, initializes this EObjectReferencerCondition with the passed arguments.
 
Method Summary
 boolean isSatisfied(EObject eObject)
          Checks the argument eObject if it has any non-containment EReference whose value is equal to/contains the referencedEObject that this EObjectReferencerCondition is initialized with.
 
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

EObjectReferencerCondition

public EObjectReferencerCondition(EObject referencedEObject,
                                  IEStructuralFeatureValueGetter eStructuralFeatureValueGetter)
A constructor, initializes this EObjectReferencerCondition with the passed arguments. It default to using PruneHandler.NEVER

Parameters:
referencedEObject - The EObject to search for
eStructuralFeatureValueGetter - the referencing EReference value getter

EObjectReferencerCondition

public EObjectReferencerCondition(EObject referencedEObject,
                                  IEStructuralFeatureValueGetter eStructuralFeatureValueGetter,
                                  PruneHandler pruneHandler)
* A constructor, initializes this EObjectReferencerCondition with the passed arguments. It default to using PruneHandler.NEVER

Parameters:
referencedEObject - The EObject to search for
eStructuralFeatureValueGetter - the referencing EReference value getter
pruneHandler - The PruneHandler
Method Detail

isSatisfied

public boolean isSatisfied(EObject eObject)
Checks the argument eObject if it has any non-containment EReference whose value is equal to/contains the referencedEObject that this EObjectReferencerCondition is initialized with.

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)

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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