org.mmbase.applications.media.filters
Class FieldValueSorter

java.lang.Object
  extended by org.mmbase.applications.media.filters.Sorter
      extended by org.mmbase.applications.media.filters.PreferenceSorter
          extended by org.mmbase.applications.media.filters.FieldValueSorter
All Implemented Interfaces:
Comparator<URLComposer>, Filter

public class FieldValueSorter
extends PreferenceSorter

Prefer sources where a field's value matches, or not, a certain regular expression

Since:
MMBase-1.9.2
Version:
$Id: FieldValueSorter.java 38845 2009-09-24 14:00:43Z michiel $
Author:
Michiel Meeuwissen

Constructor Summary
FieldValueSorter()
           
 
Method Summary
 int getPreference(URLComposer urlcomposer)
          Implement a preference for this URLComposer
 void setField(String f)
           
 void setInverse(boolean i)
          If inverse, than only filters out those sources that do not match the regular expression.
 void setPattern(String p)
           
 
Methods inherited from class org.mmbase.applications.media.filters.PreferenceSorter
compareURLComposer
 
Methods inherited from class org.mmbase.applications.media.filters.Sorter
compare, configure, 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

FieldValueSorter

public FieldValueSorter()
Method Detail

setField

public void setField(String f)

setInverse

public void setInverse(boolean i)
If inverse, than only filters out those sources that do not match the regular expression.


setPattern

public void setPattern(String p)

getPreference

public int getPreference(URLComposer urlcomposer)
Description copied from class: PreferenceSorter
Implement a preference for this URLComposer

Specified by:
getPreference in class PreferenceSorter


MMBase 2.0-SNAPSHOT - null