KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > search > IUpdateSearchFilter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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 package org.eclipse.update.search;
12
13 import org.eclipse.update.core.*;
14
15 /**
16  * Classes that implement this interface can be used to filter the
17  * results of the update search.
18  * <p>
19  * <b>Note:</b> This class/interface is part of an interim API that is still under development and expected to
20  * change significantly before reaching stability. It is being made available at this early stage to solicit feedback
21  * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
22  * (repeatedly) as the API evolves.
23  * </p>
24  * @since 3.0
25  */

26 public interface IUpdateSearchFilter {
27     /**
28      * Tests a feature according to this filter's criteria.
29      * @param match the feature to test
30      * @return <samp>true</samp> if the feature has been accepted, <samp>false</samp> otherwise.
31      * @deprecated In 3.1 only the accept (IFeatureReference) will be used
32      */

33     boolean accept(IFeature match);
34
35     /**
36      * Tests a feature reference according to this filter's criteria.
37      * This is a prefilter that allows rejecting a feature before a potentially lengthy download.
38      * @param match the feature reference to test
39      * @return <samp>true</samp> if the feature reference has been accepted, <samp>false</samp> otherwise.
40      */

41     boolean accept(IFeatureReference match);
42 }
43
Popular Tags