Source code: com/fm/rss/filter/RssFilterChain.java
1 /****************************************************************************
2 * Copyright (c) 2003 Andrew Duka | aduka@users.sourceforge.net
3 * All right reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 ****************************************************************************/
11 package com.fm.rss.filter;
12
13 import java.util.Vector;
14
15 /**
16 * Filter chain is intended to represent complex actions with the vector
17 * of rss items. For example: sort by title -> remove unread -> get last 10.
18 */
19 public interface RssFilterChain {
20
21 public int appendFilterToChain(RssItemFilter f);
22
23 public void putFilterInChain(RssItemFilter f, int position);
24
25 public void removeFilterFromChain(int position);
26
27 public Vector filter(Vector v);
28
29 }