org.jcreme.filters
Class DateIntervalFilter

java.lang.Object
  extended byorg.jcreme.filters.IntervalFilter
      extended byorg.jcreme.filters.DateIntervalFilter
All Implemented Interfaces:
java.lang.Cloneable, Filter, java.io.Serializable

public class DateIntervalFilter
extends IntervalFilter

This the specialization of the IntervalFilter for dates. It enables to determine if a given date belongs to an interval.

Version:
$Revision: 1.2 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class org.jcreme.filters.IntervalFilter
LOWER_FILTER_PROPERTY, UPPER_FILTER_PROPERTY
 
Constructor Summary
DateIntervalFilter(DateOrderFilter lowerFilter, DateOrderFilter upperFilter)
          Creates a new instance of DateIntervalFilter
 
Method Summary
 DateOrderFilter getLowerFilter()
          This method gives access to the lower barrier.
 DateOrderFilter getUpperFilter()
          This method gives access to the upper barrier.
 void setLowerFilter(DateOrderFilter filter)
          This method enables to change the lower barrier of the interval.
 void setUpperFilter(DateOrderFilter filter)
          This method enables to change the upper barrier of the interval.
 
Methods inherited from class org.jcreme.filters.IntervalFilter
accept, clone, equals, getLowerFilterInternal, getUpperFilterInternal, hashCode, setLowerFilter, setUpperFilter, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DateIntervalFilter

public DateIntervalFilter(DateOrderFilter lowerFilter,
                          DateOrderFilter upperFilter)
Creates a new instance of DateIntervalFilter

Parameters:
lowerFilter - the filter for the lower barrier of the interval.
upperFilter - the filter for the upper barrier of the interval.
Method Detail

setLowerFilter

public void setLowerFilter(DateOrderFilter filter)
This method enables to change the lower barrier of the interval.

Parameters:
filter - a filter to restrict the current interval.

setUpperFilter

public void setUpperFilter(DateOrderFilter filter)
This method enables to change the upper barrier of the interval.

Parameters:
filter - a filter to restrict the current interval.

getLowerFilter

public DateOrderFilter getLowerFilter()
This method gives access to the lower barrier.

Returns:
the filter associated to the lower end of the interval.

getUpperFilter

public DateOrderFilter getUpperFilter()
This method gives access to the upper barrier.

Returns:
the filter associated to the upper end of the interval.


Copyright 2006 null. All Rights Reserved.