org.hd.d.pg2k.webSvr.exhibit
Class BuiltInFilters.filtSimpleSubstringMatch

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.exhibit.BuiltInFilters.filtSimpleSubstringMatch
All Implemented Interfaces:
java.io.Serializable, AllExhibitProperties.AEPFilter, ExprIF, FilterIF
Enclosing class:
BuiltInFilters

public static final class BuiltInFilters.filtSimpleSubstringMatch
extends java.lang.Object
implements FilterIF

Accepts an exhibit with the given case-sensitive substring in its full pathname. This is no respector of syntax, or aliases.

Not fast and does not look at the data or meta-data.

As a special case this is publicly visible until expression parsing is implemented.

FIXME: add equals() and hashCode().

See Also:
Serialized Form

Field Summary
private  java.lang.String subString
          The substring to match.
 
Constructor Summary
BuiltInFilters.filtSimpleSubstringMatch(java.lang.String[] args)
          Takes exactly one argument; the case-sensitive substring to match.
 
Method Summary
 boolean accept(AllExhibitProperties aep, Name.ExhibitFull exhibitName)
          Returns true if the exhibit (specified by full name) should be accepted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subString

private final java.lang.String subString
The substring to match.

Constructor Detail

BuiltInFilters.filtSimpleSubstringMatch

public BuiltInFilters.filtSimpleSubstringMatch(java.lang.String[] args)
Takes exactly one argument; the case-sensitive substring to match.

Method Detail

accept

public boolean accept(AllExhibitProperties aep,
                      Name.ExhibitFull exhibitName)
Description copied from interface: FilterIF
Returns true if the exhibit (specified by full name) should be accepted.

Specified by:
accept in interface AllExhibitProperties.AEPFilter
Specified by:
accept in interface FilterIF

DHD Multimedia Gallery V1.53.0

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