SSF.OS.NetFlow.Filter
Class RERange

java.lang.Object
  |
  +--SSF.OS.NetFlow.Filter.RERange
All Implemented Interfaces:
Range

public class RERange
extends java.lang.Object
implements Range

RERange The range is specified by a Regular expression. It checks whether a given string matches the regular expression.
It uses the gnu.regexp package by Wesley Warden Bigg.


Constructor Summary
RERange()
           
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg, byte dataType)
          Config the Regular Expression Range create the RE (Regular Expression) object needed
reg_exp -- regular expression.
 boolean inRange(java.lang.Object data, byte dataType)
          check wether given string matches the regular expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RERange

public RERange()
Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg,
                   byte dataType)
            throws com.renesys.raceway.DML.configException
Config the Regular Expression Range create the RE (Regular Expression) object needed
reg_exp -- regular expression.

Specified by:
config in interface Range
Parameters:
cfg - the configuration that contains "reg_exp" attribute
dataType - the type of the data that will be checked, should be String or IP here.
com.renesys.raceway.DML.configException

inRange

public boolean inRange(java.lang.Object data,
                       byte dataType)
check wether given string matches the regular expression

Specified by:
inRange in interface Range