|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfable.utility.strategy.FilterStrategyFactory
public class FilterStrategyFactory
FilterStrategyFactory is a factory class to provide filters
Method Summary | |
---|---|
static FilterStrategy |
acceptAll()
Returns a filter strategy that accepts all kinds of articles |
static FilterStrategy |
acceptAuthor(java.lang.String author)
Returns a filter strategy that only allows articles written by a particular author through |
static FilterStrategy |
acceptBetween(java.util.Date start,
java.util.Date end)
Returns a filter strategy that only allows articles between these two dates (inclusive) |
static FilterStrategy |
acceptCensor(FableCensor x)
Creates a filterStrategy from a FilterCensor |
static FilterStrategy |
acceptCombined(java.util.Collection<FilterStrategy> x)
Returns a combined filter strategy |
static FilterStrategy |
acceptEndingAt(java.util.Date d)
Returns a filter strategy that only allows articles ending at this date (inclusive) |
static FilterStrategy |
acceptRead()
Returns a filter strategy that only allows read articles through |
static FilterStrategy |
acceptStarred()
Returns a filter strategy that only allows starred articles through |
static FilterStrategy |
acceptStartingFrom(java.util.Date d)
Returns a filter strategy that only allows articles starting from this date (inclusive) |
static FilterStrategy |
acceptUnread()
Returns a filter strategy that only allows unread articles through |
static FilterStrategy |
acceptUnStarred()
Returns a filter strategy that only allows unstarred articles through |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FilterStrategy acceptAll()
public static FilterStrategy acceptStarred()
public static FilterStrategy acceptUnStarred()
public static FilterStrategy acceptUnread()
public static FilterStrategy acceptRead()
public static FilterStrategy acceptAuthor(java.lang.String author)
author
- The author whose articles are to be seen
public static FilterStrategy acceptStartingFrom(java.util.Date d)
d
- Date to start from
public static FilterStrategy acceptEndingAt(java.util.Date d)
d
- Date to end at
public static FilterStrategy acceptBetween(java.util.Date start, java.util.Date end)
start
- Date to start fromend
- Date to end at
public static FilterStrategy acceptCombined(java.util.Collection<FilterStrategy> x)
x
- A list of filter strategies
public static FilterStrategy acceptCensor(FableCensor x)
x
- Censor to create strategy from
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |