IBM Rational Software Modeler
Release 6.0

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

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

public class EObjectContainmentFeatureCondition
extends EObjectCondition

A subclass of EObjectCondition that tests for the containing feature of a given EObject to see if it is the same as a specific 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
EObjectContainmentFeatureCondition(org.eclipse.emf.ecore.EReference containmentFeature)
          A simple constructor, it defaults to using PruneHandler.NEVER
EObjectContainmentFeatureCondition(org.eclipse.emf.ecore.EReference containmentFeature, PruneHandler pruneHandler)
          A simple constructor, it initializes this EObjectContainmentFeatureCondition with the passed arguments.
 
Method Summary
 boolean isSatisfied(org.eclipse.emf.ecore.EObject eObject)
          Answers whether the argument eObject containing EReference is the same as the one used in the initialization of this condition.
 
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

EObjectContainmentFeatureCondition

public EObjectContainmentFeatureCondition(org.eclipse.emf.ecore.EReference containmentFeature)
A simple constructor, it defaults to using PruneHandler.NEVER

Parameters:
containmentFeature - The EReference to check for

EObjectContainmentFeatureCondition

public EObjectContainmentFeatureCondition(org.eclipse.emf.ecore.EReference containmentFeature,
                                          PruneHandler pruneHandler)
A simple constructor, it initializes this EObjectContainmentFeatureCondition with the passed arguments.

Parameters:
containmentFeature - The EReference to check for
pruneHandler - The PruneHandler to use
Method Detail

isSatisfied

public boolean isSatisfied(org.eclipse.emf.ecore.EObject eObject)
Answers whether the argument eObject containing EReference is the same as the one used in the initialization of this condition.

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.