KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > runtime > dynamichelpers > IFilter


1 /*******************************************************************************
2  * Copyright (c) 2005, 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 package org.eclipse.core.runtime.dynamichelpers;
12
13 import org.eclipse.core.runtime.IExtensionPoint;
14
15 /**
16  * A filter compares the given object to some pattern and returns
17  * <code>true</code> if the two match and <code>false</code> otherwise.
18  * <p>
19  * This interface may be implemented by clients, however factory methods are
20  * available on IExtensionTracker.
21  * </p><p>
22  * This interface can be used without OSGi running.
23  * </p>
24  * @since 3.1
25  */

26 public interface IFilter {
27     /**
28      * Return <code>true</code> if the given object matches the criteria
29      * for this filter.
30      *
31      * @param target the object to match
32      * @return <code>true</code> if the target matches this filter
33      * and <code>false</code> otherwise
34      */

35     public boolean matches(IExtensionPoint target);
36 }
37
Popular Tags