|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.xtools.emf.query.conditions.Condition
com.ibm.xtools.emf.query.conditions.eobjects.EObjectCondition
com.ibm.xtools.emf.query.conditions.eobjects.EObjectTypeRelationCondition
An EObjectCondition specilaization to be used for evaluating
the inheritance/type relationship of an EObject to another
using the EObjects' EClasses. For example it could be used to find if a given
EObject is a subtype/supertype of another EObject.
TypeRelation| Field Summary | |
static EObjectTypeRelationCondition |
UNDEFINED
A constant EObjectTypeRelationCondition object used to
indicate that the type relatioship is undefined and hence it is always
satisfied. |
| 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 | |
EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type)
A Simple constructor, it initializes the EObjectTypeRelationCondition with the given
EClass. |
|
EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
PruneHandler pruneHandler)
A constructor, it initializes the EObjectTypeRelationCondition with the given
EClass. |
|
EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
TypeRelation typeRelationKind)
A constructor, it initializes the EObjectTypeRelationCondition with the given
EClass and the TypeRelation specified. |
|
EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
TypeRelation typeRelationKind,
PruneHandler pruneHandler)
A constructor, it initializes the EObjectTypeRelationCondition with the given
EClass, the TypeRelation and the
PruneHandler specified. |
|
| Method Summary | |
boolean |
isSatisfied(org.eclipse.emf.ecore.EObject eObject)
Evaluates this EObjectTypeRelationCondition, basically it
answers the following question: Is the passed eObject's
EClass is a TypeRelation to this
EObjectTypeRelationCondition's primary type/
EClass? |
| 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 |
| Field Detail |
public static final EObjectTypeRelationCondition UNDEFINED
EObjectTypeRelationCondition object used to
indicate that the type relatioship is undefined and hence it is always
satisfied.
| Constructor Detail |
public EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type)
EObjectTypeRelationCondition with the given
EClass. It defaults to using
TypeRelation.SAMETYPE_LITERAL as its relationship of interest and
PruneHandler.NEVER to handle pruning
type - The EClass the primary type to check against
public EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
PruneHandler pruneHandler)
EObjectTypeRelationCondition with the given
EClass. It defaults to using
TypeRelation.SAMETYPE_LITERAL as its relationship of interest.
type - The EClass the primary type to check againstpruneHandler - The prune handler
public EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
TypeRelation typeRelationKind)
EObjectTypeRelationCondition with the given
EClass and the TypeRelation specified. It
defaults to using PruneHandler.NEVER to handle pruning
type - The EClass the primary type to check againsttypeRelationKind - The relationship kind between the primary type argument and
other EObjects to test for when evaluating this
EObjectTypeRelationCondition.
public EObjectTypeRelationCondition(org.eclipse.emf.ecore.EClass type,
TypeRelation typeRelationKind,
PruneHandler pruneHandler)
EObjectTypeRelationCondition with the given
EClass, the TypeRelation and the
PruneHandler specified.
type - The EClass the primary type to check againsttypeRelationKind - typeRelationKind The relationship kind between the primary
type argument and other EObjects to test for when evaluating
this EObjectTypeRelationCondition.pruneHandler - The prune handler| Method Detail |
public boolean isSatisfied(org.eclipse.emf.ecore.EObject eObject)
EObjectTypeRelationCondition, basically it
answers the following question: Is the passed eObject's
EClass is a TypeRelation to this
EObjectTypeRelationCondition's primary type/
EClass?
isSatisfied in class EObjectConditioneObject - the EObject to check
true if the argument eObject satisfies
this EObjectConditionEObjectCondition.isSatisfied(org.eclipse.emf.ecore.EObject)
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.