org.mmbase.applications.media.filters
Class ChainSorter

java.lang.Object
  extended byorg.mmbase.applications.media.filters.Sorter
      extended byorg.mmbase.applications.media.filters.ChainSorter
All Implemented Interfaces:
java.util.Comparator, Filter
Direct Known Subclasses:
RealSorter

public class ChainSorter
extends Sorter

Chains some comparators to make one new comparator.

Version:
$Id: ChainSorter.java,v 1.2 2003/02/05 16:39:39 michiel Exp $
Author:
Michiel Meeuwissen

Constructor Summary
ChainSorter()
           
 
Method Summary
 void add(Sorter ri)
          Add one filter to the chain
 void clear()
          Empties the chain
 int compareURLComposer(URLComposer o1, URLComposer o2)
          Implement this.
 void configure(XMLBasicReader reader, org.w3c.dom.Element e)
          Configure.
 int size()
           
 
Methods inherited from class org.mmbase.applications.media.filters.Sorter
compare, filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ChainSorter

public ChainSorter()
Method Detail

clear

public void clear()
Empties the chain


add

public void add(Sorter ri)
Add one filter to the chain


size

public int size()

configure

public void configure(XMLBasicReader reader,
                      org.w3c.dom.Element e)
Configure. Configures all elements on default.

Specified by:
configure in interface Filter
Overrides:
configure in class Sorter

compareURLComposer

public int compareURLComposer(URLComposer o1,
                              URLComposer o2)
Description copied from class: Sorter
Implement this.

Specified by:
compareURLComposer in class Sorter


MMBase build 1.7.4.20050922