Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core.util
Interface IFilter<T>

All Known Implementing Classes:
AbstractFilter

public interface IFilter<T>

Interface for implementing filters for various object types.

Since:
3.0
Author:
Konstantin Komissarchik

Nested Class Summary
static interface IFilter.IFilterEvent<T>
           
static interface IFilter.IFilterListener<T>
           
 
Method Summary
 void addListener(IFilter.IFilterListener<T> listener, IFilter.IFilterEvent.Type... types)
           
 boolean check(T object)
          The method that is called to let the filter make the determination whether an object passes through the filter.
 void removeListener(IFilter.IFilterListener<T> listener)
           
 

Method Detail

check

boolean check(T object)
The method that is called to let the filter make the determination whether an object passes through the filter.

Parameters:
object - the object that the filter should check
Returns:
true if the object passes through the filter and false otherwise

addListener

void addListener(IFilter.IFilterListener<T> listener,
                 IFilter.IFilterEvent.Type... types)

removeListener

void removeListener(IFilter.IFilterListener<T> listener)

Faceted Project Framework
Version 1.3

Copyright (c) 2008 BEA Systems, Inc. and others. All rights reserved.