com.arsdigita.search.filters
Class DateRangeFilterSpecification

java.lang.Object
  extended bycom.arsdigita.search.FilterSpecification
      extended bycom.arsdigita.search.filters.DateRangeFilterSpecification

public class DateRangeFilterSpecification
extends FilterSpecification

A filter spec for supplying two dates (start & end) for filtering on the item's launch date.


Field Summary
static String END_DATE
           
static String START_DATE
           
 
Constructor Summary
DateRangeFilterSpecification(Date start, Date end, FilterType filterType)
          Creates a new filter restricting results to have a launch date within a given range, inclusive.
 
Method Summary
 Date getEndDate()
          End of the date range for filtering
 Date getStartDate()
          Start of the date range for filtering
 
Methods inherited from class com.arsdigita.search.FilterSpecification
equals, get, getType, hashCode, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_DATE

public static final String START_DATE
See Also:
Constant Field Values

END_DATE

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

DateRangeFilterSpecification

public DateRangeFilterSpecification(Date start,
                                    Date end,
                                    FilterType filterType)
Creates a new filter restricting results to have a launch date within a given range, inclusive.

Parameters:
start - the start date
end - the end date
Method Detail

getStartDate

public Date getStartDate()
Start of the date range for filtering

Returns:
the start date

getEndDate

public Date getEndDate()
End of the date range for filtering

Returns:
the end date


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC