com.jalios.jcms
Class AndDataSelector

java.lang.Object
  extended by com.jalios.jcms.AndDataSelector
All Implemented Interfaces:
DataSelector

public class AndDataSelector
extends Object
implements DataSelector

This class combines a set of DataSelector. The data is selected if it is selected by all the DataSelectors.

Version:
$Revision: 39326 $
Author:
Olivier Dedieu
See Also:
OrDataSelector, ReverseDataSelector

Field Summary
static String REVISION
           
 
Constructor Summary
AndDataSelector(DataSelector... dsArray)
          Creates a new AndDataSelector from an array of DataSelectors.
AndDataSelector(DataSelector ds1, DataSelector ds2)
          Creates a new AndDataSelector from 2 DataSelectors.
AndDataSelector(DataSelector ds1, DataSelector ds2, DataSelector ds3)
          Creates a new AndDataSelector from 3 DataSelectors.
 
Method Summary
 boolean isSelected(Data data)
          Returns true if all the DataSelector returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

AndDataSelector

public AndDataSelector(DataSelector ds1,
                       DataSelector ds2)
Creates a new AndDataSelector from 2 DataSelectors.

Parameters:
ds1 - the first DataSelector
ds2 - the second DataSelector

AndDataSelector

public AndDataSelector(DataSelector ds1,
                       DataSelector ds2,
                       DataSelector ds3)
Creates a new AndDataSelector from 3 DataSelectors.

Parameters:
ds1 - the first DataSelector
ds2 - the second DataSelector
ds3 - the third DataSelector

AndDataSelector

public AndDataSelector(DataSelector... dsArray)
Creates a new AndDataSelector from an array of DataSelectors.

Parameters:
dsArray - the array of DataSelector
Method Detail

isSelected

public boolean isSelected(Data data)
Returns true if all the DataSelector returns true.

Specified by:
isSelected in interface DataSelector
Parameters:
data - the data to evaluate.
Returns:
true if all the DataSelector returns true. False otherwise.


Copyright © 2001-2010 Jalios SA. All Rights Reserved.