|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.Filter
com.sciapp.filter.ComparisonFilter
com.sciapp.filter.DateFilter
public class DateFilter
A date filter.
This class uses a DateComparator object to compare the Date values.
Field Summary | |
---|---|
protected Date |
date
The date expression the supplied objects are matched against. |
protected DateComparator |
dc
A Date comparator object used to compare Date values. |
Fields inherited from class com.sciapp.filter.ComparisonFilter |
---|
comparison, EQ, GE, GT, LE, LT, NE |
Fields inherited from class com.sciapp.filter.Filter |
---|
acceptNull |
Constructor Summary | |
---|---|
DateFilter()
Constructs a DateFilter with an EQUAL_TO mode and with the date expression set to the current date. |
|
DateFilter(Date date)
Constructs a DateFilter with an EQUAL_TO mode and with the date expression set to date. |
Method Summary | |
---|---|
boolean |
accept(Date d)
Matches the Date value supplied against the date expression of the filter. |
boolean |
accept(Object value)
Decides whether to accept the value supplied. |
Date |
getDate()
Returns the current date expression of the filer. |
DateComparator |
getDateComparator()
Returns the date comparator that is used when filtering. |
Object |
getFilterPattern()
Returns the object used as the filter pattern. |
void |
setDate(Date d)
Sets the date expression to d. |
void |
setFilterPattern(Object filter)
Sets an object as the filter pattern. |
Methods inherited from class com.sciapp.filter.ComparisonFilter |
---|
getComparison, setComparison |
Methods inherited from class com.sciapp.filter.Filter |
---|
getAcceptNull, setAcceptNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Date date
protected DateComparator dc
Constructor Detail |
---|
public DateFilter()
public DateFilter(Date date)
Method Detail |
---|
public boolean accept(Object value)
accept
in class Filter
value
- the object we want to decide if it will be filtered or not.
public boolean accept(Date d)
d
- the Date value to match
public Date getDate()
public Object getFilterPattern()
getFilterPattern
in class Filter
public void setDate(Date d)
d
- the date expressionpublic void setFilterPattern(Object filter)
filter
to the appropriate object.
setFilterPattern
in class Filter
filter
- the object to set as the filter patternpublic DateComparator getDateComparator()
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |