org.hd.d.pg2k.webSvr.exhibit
Interface FilterIF

All Superinterfaces:
AllExhibitProperties.AEPFilter, ExprIF, java.io.Serializable
All Known Implementing Classes:
BuiltInFilters.filtAll, BuiltInFilters.filtByAuthor, BuiltInFilters.filtByCategory, BuiltInFilters.filtByEstdLocationCentre, BuiltInFilters.filtNothing, BuiltInFilters.filtPrefixMatch, BuiltInFilters.filtSimpleSubstringMatch, BuiltInFilters.filtSimpleSuffixMatch

public interface FilterIF
extends ExprIF, AllExhibitProperties.AEPFilter

Interface for a class to filter exhibits (for a FilterBean). Filters must be Serializable so that filter expressions can be persisted. They must not attempt to cache any reference, direct or indirect, to the DataSourceBean.

Filter objects must be immutable and the accept() method must be idempotent and not depend on any state held within the object.

The output ordering is not necessarily stable with respect to the input.

Implementing classes should implement equals() and hashCode() properly.


Method Summary
 boolean accept(AllExhibitProperties aep, Name.ExhibitFull exhibitName)
          Returns true if the exhibit (specified by full name) should be accepted.
 

Method Detail

accept

boolean accept(AllExhibitProperties aep,
               Name.ExhibitFull exhibitName)
Returns true if the exhibit (specified by full name) should be accepted.

Specified by:
accept in interface AllExhibitProperties.AEPFilter

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.