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

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.exhibit.BuiltInFilters

public final class BuiltInFilters
extends java.lang.Object

Built-in filters and sorters that can be looked up by name. The filters are inner classes and not publicly visible so that by-and-large they do have to be looked up by name. There is an internal registry so that reflection doesn't have to be used and packagers such as dashO should have any easier time working out what's going on...

All the filters/sorters are constructed with a String array or arguments. This argument list is never null, though may be zero length if there are no arguments for a particular filter/sorter. None of the arguments itself will be null.

The exhibit names are full names, ie including the leading directory component.


Nested Class Summary
static class BuiltInFilters.filtAll
          Accepts all exhibits.
static class BuiltInFilters.filtByAuthor
          Filter by author.
static class BuiltInFilters.filtByCategory
          Filter by category.
static class BuiltInFilters.filtByEstdLocationCentre
          Accepts an that has an Estd location within the target area; possibly within the specified area.
static class BuiltInFilters.filtNothing
          Rejects all exhibits.
static class BuiltInFilters.filtPrefixMatch
          Accepts an exhibit with the given case-sensitive substring starting its final (file / short-name) component.
static class BuiltInFilters.filtSimpleSubstringMatch
          Accepts an exhibit with the given case-sensitive substring in its full pathname.
static class BuiltInFilters.filtSimpleSuffixMatch
          Accepts an exhibit with the given case-sensitive substring ending its final component.
static class BuiltInFilters.sortByGoodness
          Sorts exhibits by (descending) goodness, ie best first.
static class BuiltInFilters.sortByName
          Simple sort of exhibits by name.
static class BuiltInFilters.sortByTimestamp
          Sorts exhibits by (ascending) timestamp, ie oldest first.
static class BuiltInFilters.sortRandomN
          Selects N exhibits at random and randomises their order.
static class BuiltInFilters.sortReverse
          Reverses the existing order of exhibits in situ.
 
Constructor Summary
private BuiltInFilters()
          No one can instantiate this.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuiltInFilters

private BuiltInFilters()
No one can instantiate this.


DHD Multimedia Gallery V1.53.0

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