|
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.booleans.BooleanCondition
A Condition
object that tests for Boolean
arguments. The arguments being evaluated are adapted to a
Boolean
first using a BooleanAdapter
and then
compared to the initialization value of this BooleanCondition
.
It evaluates to true
when values are equal
Field Summary |
Fields inherited from class com.ibm.xtools.emf.query.conditions.Condition |
FALSE, TRUE |
Constructor Summary | |
BooleanCondition(boolean booleanValue)
Constructs this BooleanCondition with a boolean value to
test for. |
|
BooleanCondition(boolean booleanValue,
BooleanAdapter adapter)
Constructs this BooleanCondition with a boolean value to
test for. |
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 |
public BooleanCondition(boolean booleanValue)
BooleanCondition
with a boolean value to
test for. It uses the BooleanAdapter.DEFAULT adapter to handle the
simplest case when argument objects are known to be instances of
Boolean
class
booleanValue
- The initialization value of this Condition
to
use in testing argument objects for equality.public BooleanCondition(boolean booleanValue, BooleanAdapter adapter)
BooleanCondition
with a boolean value to
test for. It uses the argument BooleanAdapter
adapter to
adapt argument objects to Boolean
objects in order to do
the comparison
booleanValue
- The initialization value of this Condition
to
use in testing argument objects for equality.adapter
- The BooleanAdapter
to use to extract a
Boolean
representation of the argument object
when evaluating it.Method Detail |
public boolean isSatisfied(Object object)
Condition
Condition
in regard to the argument Object. In other words, the operation answers
whether the argument Object satisfied this Condition
or
not.
isSatisfied
in class Condition
object
- an Object to check if it satisfies this Condition
true
if the argument Object satisfies this
Condition
,false
otherwise.
|
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.