etm.contrib.aggregation.filter
Class RegexEtmFilter

java.lang.Object
  extended by etm.contrib.aggregation.filter.RegexEtmFilter
All Implemented Interfaces:
EtmFilter

public class RegexEtmFilter
extends java.lang.Object
implements EtmFilter

The RegexAggregationFilter filters etm point names based on a list of JDK 1.4 regex.

Since:
1.2.0
Version:
$Revision: 150 $
Author:
void.fm
See Also:
Pattern

Field Summary
protected  java.util.regex.Pattern[] pattern
           
protected  java.util.HashSet validNames
           
 
Constructor Summary
RegexEtmFilter(java.lang.String listOfPattern)
          Create a RegexAggregationFilter instance based on a list of regex pattern separated by semicolon.
RegexEtmFilter(java.lang.String[] regexPattern)
          Create a RegexAggregationFilter
 
Method Summary
 boolean matches(EtmPoint aPoint)
          Checks whether the given EtmPoint matches or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validNames

protected final java.util.HashSet validNames

pattern

protected java.util.regex.Pattern[] pattern
Constructor Detail

RegexEtmFilter

public RegexEtmFilter(java.lang.String listOfPattern)
Create a RegexAggregationFilter instance based on a list of regex pattern separated by semicolon.

Parameters:
listOfPattern - Java 1.4 Regex separated by semicolon.

RegexEtmFilter

public RegexEtmFilter(java.lang.String[] regexPattern)
Create a RegexAggregationFilter

Parameters:
regexPattern - The Java 1.4 regex patterm/
Method Detail

matches

public boolean matches(EtmPoint aPoint)
Description copied from interface: EtmFilter
Checks whether the given EtmPoint matches or not.

Specified by:
matches in interface EtmFilter
Parameters:
aPoint - The EtmPoint.
Returns:
True for match, otherwhise false.


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.