com.neoworks.jukex.tracksource.filter
Class AttributeRegexTrackFilter

java.lang.Object
  |
  +--com.neoworks.jukex.tracksource.filter.AttributeRegexTrackFilter
All Implemented Interfaces:
AttributeTrackFilter, java.io.Serializable, TrackFilter

public class AttributeRegexTrackFilter
extends java.lang.Object
implements AttributeTrackFilter

Filter tracks based on regular expression matching of track Attributes.

Author:
Nigel Atkinson nigel@neoworks.com
See Also:
Serialized Form

Constructor Summary
AttributeRegexTrackFilter(Attribute a, AttributeValue v)
          Public constructor
 
Method Summary
 Attribute getAttribute()
          Get the Attribute used for matching
 java.lang.String getComparatorDescription()
          Get a description of the comparator being used in this filter
 AttributeValue getValue()
          Get the AttributeValue to match against
 boolean match(Track t)
          Check whether a Track matches this filter
 java.lang.String toString()
          Get a String representation of this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeRegexTrackFilter

public AttributeRegexTrackFilter(Attribute a,
                                 AttributeValue v)
                          throws java.util.regex.PatternSyntaxException
Public constructor

Parameters:
a -
v -
Throws:
java.util.regex.PatternSyntaxException
Method Detail

match

public boolean match(Track t)
Check whether a Track matches this filter

Specified by:
match in interface TrackFilter
Parameters:
t - The Track to check for a match
Returns:
Whether the Track matches

getAttribute

public Attribute getAttribute()
Get the Attribute used for matching

Specified by:
getAttribute in interface AttributeTrackFilter
Returns:
The Attribute

getValue

public AttributeValue getValue()
Get the AttributeValue to match against

Specified by:
getValue in interface AttributeTrackFilter
Returns:
The AttributeValue

getComparatorDescription

public java.lang.String getComparatorDescription()
Get a description of the comparator being used in this filter

Specified by:
getComparatorDescription in interface TrackFilter
Returns:
A String description

toString

public java.lang.String toString()
Get a String representation of this filter

Overrides:
toString in class java.lang.Object