IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.transform.uml2
Class IsSubtypeOfKindCondition

java.lang.Object
  extended bycom.ibm.xtools.emf.query.conditions.Condition
      extended bycom.ibm.xtools.transform.uml2.IsSubtypeOfKindCondition

public class IsSubtypeOfKindCondition
extends Condition

Determine if the source EMF object is a subtype of the specified element kind (eClass), based upon the underlying metamodel hierarchy. If an element kind is not specified (in the constructor), this condition will not accept anything.


Field Summary
 
Fields inherited from class com.ibm.xtools.emf.query.conditions.Condition
FALSE, TRUE
 
Constructor Summary
IsSubtypeOfKindCondition(EClass elementKind)
          Constructor.
 
Method Summary
 boolean isSatisfied(Object object)
          This operation is the evaluation operation of this Condition in regard to the argument Object.
 
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

IsSubtypeOfKindCondition

public IsSubtypeOfKindCondition(EClass elementKind)
Constructor.

Parameters:
elementKind - Specify the language element kind to accept.
Method Detail

isSatisfied

public boolean isSatisfied(Object object)
Description copied from class: Condition
This operation is the evaluation operation of this Condition in regard to the argument Object. In other words, the operation answers whether the argument Object satisfied this Condition or not.

Specified by:
isSatisfied in class Condition
Parameters:
object - an Object to check if it satisfies this Condition
Returns:
true if the argument Object satisfies this Condition,false otherwise.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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