IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.query.conditions.booleans
Class BooleanAdapter

java.lang.Object
  extended bycom.ibm.xtools.emf.query.conditions.booleans.BooleanAdapter

public abstract class BooleanAdapter
extends Object

An Adapter class to be used to extract from -adapt- the argument object some Boolean object (value) that would later be used in Condition evaluation. Clients can subclass an provide their own implementation

See Also:
BooleanCondition

Field Summary
static BooleanAdapter DEFAULT
          The simplest BooleanAdapter implementation that represents the case when the argument object to adapt is a Boolean object itself.
 
Constructor Summary
BooleanAdapter()
           
 
Method Summary
abstract  Boolean getBoolean(Object object)
          Extracts from/Adapts the argument object to a Boolean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final BooleanAdapter DEFAULT
The simplest BooleanAdapter implementation that represents the case when the argument object to adapt is a Boolean object itself.

Constructor Detail

BooleanAdapter

public BooleanAdapter()
Method Detail

getBoolean

public abstract Boolean getBoolean(Object object)
Extracts from/Adapts the argument object to a Boolean

Parameters:
object - The argument object to adapt to a Boolean by this adapter
Returns:
Boolean the Boolean object representation of the argument object

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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