KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > views > markers > internal > IFilter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.views.markers.internal;
13
14 /**
15  * Generic filtering interface.
16  */

17 public interface IFilter {
18
19     /**
20      * Filters the list of elements. Removes the elements that need to filtered out from the list.
21      *
22      * @param elements
23      */

24     public Object JavaDoc[] filter(Object JavaDoc[] elements);
25
26     /**
27      * @param item
28      * @return
29      * <ul>
30      * <li><code>true</code> if the item will make it through the filter.</li>
31      * <li><code>false</code> if the item will not make it through the filter.</li>
32      * </ul>
33      */

34     public boolean select(Object JavaDoc item);
35
36 }
37
Popular Tags