IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.transform.core
Class TransformCondition

java.lang.Object
  extended bycom.ibm.xtools.emf.query.conditions.Condition
      extended bycom.ibm.xtools.transform.core.TransformCondition

public abstract class TransformCondition
extends Condition

A base class for conditions that require the entire transform context to make their isSatisfied() decision.


Field Summary
 
Fields inherited from class com.ibm.xtools.emf.query.conditions.Condition
FALSE, TRUE
 
Constructor Summary
TransformCondition()
           
 
Method Summary
 Condition AND(Condition condition)
          Combine two transform conditions with logical AND
 Condition EQUIVALENT(Condition condition)
          Combine two transform conditions with an equivalency test
 Condition IMPLIES(Condition condition)
          Combine two transform conditions with logical test NOT(this).OR(condition)
protected abstract  boolean isContextSatisfied(ITransformContext context)
          Is the condition satisfied by the data in the transform context.
 boolean isSatisfied(Object object)
          This operation is the evaluation operation of this Condition in regard to the argument Object.
 Condition OR(Condition condition)
          Combine two transform conditions with logical OR
 Condition XOR(Condition condition)
          Combine two transform conditions with logical XOR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformCondition

public TransformCondition()
Method Detail

isContextSatisfied

protected abstract boolean isContextSatisfied(ITransformContext context)
Is the condition satisfied by the data in the transform context.

Parameters:
context - the current context of the transformation execution
Returns:
boolean - the result of the test

isSatisfied

public final 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.
See Also:
Condition.isSatisfied(java.lang.Object)

AND

public Condition AND(Condition condition)
Combine two transform conditions with logical AND

Overrides:
AND in class Condition
Parameters:
condition - - the second argument of AND
Returns:
Condition - the compound condition of type TransformCondition

OR

public Condition OR(Condition condition)
Combine two transform conditions with logical OR

Overrides:
OR in class Condition
Parameters:
condition - - the second argument of OR
Returns:
Condition - the compound condition of type TransformCondition

XOR

public Condition XOR(Condition condition)
Combine two transform conditions with logical XOR

Overrides:
XOR in class Condition
Parameters:
condition - - the second argument of XOR
Returns:
Condition - the compound condition of type TransformCondition

IMPLIES

public Condition IMPLIES(Condition condition)
Combine two transform conditions with logical test NOT(this).OR(condition)

Overrides:
IMPLIES in class Condition
Parameters:
condition - - the second argument of OR
Returns:
Condition - the compound condition of type TransformCondition

EQUIVALENT

public Condition EQUIVALENT(Condition condition)
Combine two transform conditions with an equivalency test

Overrides:
EQUIVALENT in class Condition
Parameters:
condition - - the second argument of == test
Returns:
Condition - the compound condition of type TransformCondition

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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