org.eclipse.emf.query.conditions.booleans
Class BooleanAdapter

java.lang.Object
  extended byorg.eclipse.emf.query.conditions.booleans.BooleanAdapter

public abstract class BooleanAdapter
extends java.lang.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  java.lang.Boolean getBoolean(java.lang.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 java.lang.Boolean getBoolean(java.lang.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

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.