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

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

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

Accepts an exhibit with the given case-sensitive substring ending its final component. This is not much of a respector of syntax.

Very 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 static long serialVersionUID
          Unique serial ID.
private  java.lang.String suffix
          The substring to match.
 
Constructor Summary
BuiltInFilters.filtSimpleSuffixMatch(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

serialVersionUID

private static final long serialVersionUID
Unique serial ID.

See Also:
Constant Field Values

suffix

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

Constructor Detail

BuiltInFilters.filtSimpleSuffixMatch

public BuiltInFilters.filtSimpleSuffixMatch(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.60.69

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