org.qtunes.db
Class TrackMatcher

java.lang.Object
  extended by org.qtunes.core.util.AbstractMatcher<Track>
      extended by org.qtunes.db.TrackMatcher
All Implemented Interfaces:
java.io.Serializable

public class TrackMatcher
extends AbstractMatcher<Track>

A AbstractMatcher which matches against the fields in a Track by name. This can be used for SmartPlaylist or similar. Some examples:

 Artist = "Prince"
 (Genre = "Dance" or Genre = "House") and Year < 2000
 

See Also:
Serialized Form

Constructor Summary
TrackMatcher(java.lang.String filter)
          Create a new TrackMatcher with the specified filter
 
Method Summary
 java.lang.Object getProperty(Track track, java.lang.String property)
          Return the specified Property from the source object being tested
 
Methods inherited from class org.qtunes.core.util.AbstractMatcher
equals, getFilter, hashCode, isUniversal, matches, test, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackMatcher

public TrackMatcher(java.lang.String filter)
Create a new TrackMatcher with the specified filter

Parameters:
filter - the filter
Method Detail

getProperty

public java.lang.Object getProperty(Track track,
                                    java.lang.String property)
Description copied from class: AbstractMatcher
Return the specified Property from the source object being tested

Specified by:
getProperty in class AbstractMatcher<Track>